def _cf_data_from_bytes(bytestring):
    """
    Given a bytestring, create a CFData object from it. This CFData object must
    be CFReleased by the caller.
    """
    return CoreFoundation.CFDataCreate(
        CoreFoundation.kCFAllocatorDefault, bytestring, len(bytestring)
    )

    Given a bytestring, create a CFData object from it. This CFData object must
    be CFReleased by the caller.
    
product/gradle-plugin/src/main/python/pip/_vendor/urllib3/contrib/_securetransport/low_level.py