def _is_identity(item):
    """
    Returns True if a given CFTypeRef is an identity.
    """
    expected = Security.SecIdentityGetTypeID()
    return CoreFoundation.CFGetTypeID(item) == expected

    Returns True if a given CFTypeRef is an identity.
    
lib/urllib3/contrib/_securetransport/low_level.py