def unbound_method_to_callable(func_or_cls):

    if isinstance(func_or_cls, types.MethodType) and not func_or_cls.__self__:
        return func_or_cls.__func__
    else:
        return func_or_cls
Create a new instance from attributes
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/util/langhelpers.py/unbound_method_to_callable--crossover with--dataset/ETHPy150Open openstack/python-openstacksdk/openstack/database/v1/_proxy.py/Proxy.create_instance