Missing none check on response metadata
Response metadata was not checked to verify that it is not `None`. This could be a bug.
def none_check_noncompliant():
    import boto3
    ddb_client = boto3.client('dynamodb')
    response = ddb_client.update_item()
    # Noncompliant: does not check to verify if the ResponseMetadata is None.
    return response.get("ResponseMetadata", {})
def none_check_compliant(self, record_dicts: List[Dict]) -> Dict:
    import boto3
    kinesis_client = boto3.client('kinesis')
    response = kinesis_client.put_records(record_dicts)
    # Compliant: checks to verify if the response metadata is None.
    response_metadata = response.get('ResponseMetadata', {})
    if response_metadata is not None:
        return response_metadata
    else:
        return response