def get_task(self, object_id):
        """
        Return task of specific object with id
        :param object_id: a filter function, only return objects satisfying this condition
        :return: task
        """
        raise DeprecationWarning
        assert object_id in self._object_tasks, "Can not find the task for object(id: {})".format(object_id)
        return self._object_tasks[object_id]

        Return task of specific object with id
        :param object_id: a filter function, only return objects satisfying this condition
        :return: task
        
metadrive/engine/base_engine.py