from types import FunctionType

DefaultArg = object()


def callable(f):
    return hasattr(f, "__call__") or isinstance(f, FunctionType)


def iterable(x):
    try:
        _ = (i for i in x)
    except TypeError:
        return False
    return True

5b554fc319950452f603853c97bbafbd9caed4f5
<mask token>


def callable(f):
    return hasattr(f, '__call__') or isinstance(f, FunctionType)


<mask token>

<mask token>


def callable(f):
    return hasattr(f, '__call__') or isinstance(f, FunctionType)


def iterable(x):
    try:
        _ = (i for i in x)
    except TypeError:
        return False
    return True

<mask token>
DefaultArg = object()


def callable(f):
    return hasattr(f, '__call__') or isinstance(f, FunctionType)


def iterable(x):
    try:
        _ = (i for i in x)
    except TypeError:
        return False
    return True

from types import FunctionType
DefaultArg = object()


def callable(f):
    return hasattr(f, '__call__') or isinstance(f, FunctionType)


def iterable(x):
    try:
        _ = (i for i in x)
    except TypeError:
        return False
    return True

from types import FunctionType

DefaultArg = object()


def callable(f):
    return hasattr(f, "__call__") or isinstance(f, FunctionType)


def iterable(x):
    try:
        _ = (i for i in x)
    except TypeError:
        return False
    return True
