def _try_weakref(arg, remove_callback):
    try:
        arg = weakref.ref(arg, remove_callback)
    except TypeError:
        # Not all types can have a weakref. That includes strings
        # and floats and such, so just pass them through directly.
        pass
    return arg
Get the imported task classes for each task that will be run
dataset/ETHPy150Open CiscoSystems/avos/horizon/utils/memoized.py/_try_weakref--crossover with--dataset/ETHPy150Open jazzband/django-discover-jenkins/discover_jenkins/runner.py/get_tasks