def __new__(cls, *args, **kwargs):
        """If ``schema`` is included in the argument list, return a profile
        object using the correct class."""
        if 'schema' in kwargs:
            cls = GenericProfile
            if CoreProfile.__schema__ == kwargs['schema']:
                cls = CoreProfile
        return super(Profile, cls).__new__(cls)
dataset/ETHPy150Open pytent/pytentd/tentd/documents/profiles.py/Profile.__new__/original