def get(self, task):
        if isinstance(task, six.string_types):
            name = task
        else:
            assert issubclass(task, VTask)
            name = task.__name__

        if self._did_create:
            return self._created_names.get(name)
        else:
            return self._registered_names.get(name)
Returns the `task` or its class, if creation hasn't happened yet.
dataset/ETHPy150Open facebook/sparts/sparts/vtask.py/Tasks.get