import typing
import types


def _known_callable(item: typing.Any) -> bool:
    """Check for possibility to parse callable.

    :param item:  item to check for repr() way
    :type item: typing.Any
    :return: item is callable and should be processed not using repr
    :rtype: bool
    """
    return isinstance(item, (types.FunctionType, types.MethodType))