def unbound_method_to_callable(func_or_cls):

    if isinstance(func_or_cls, types.MethodType) and not func_or_cls.im_self:
        return func_or_cls.im_func
    else:
        return func_or_cls
Tests rendering of a list.
dataset/ETHPy150Open ralfonso/theory/theory/model/mpdutil.py/unbound_method_to_callable--crossover with--dataset/ETHPy150Open django-erp/django-erp/djangoerp/core/tests.py/RenderingValueToStringCase.test_list_value_to_string