def __init__(self, graph, name):
        self.graph = graph
        self.name = name

        # add this resource to the graph's resource_dict, which globally
        # stores all of the resources associated with this workflow
        if name in self.graph.resource_dict:
            raise ValueError(
                "Resource '%s' already exists in this graph" % name
            )
        self.graph.resource_dict[name] = self

        # these are data structures that are used to track tasks that
        # have dependencies through this resource
        self.creates_task = None
        self.depends_tasks = []
dataset/ETHPy150Open deanmalmgren/flo/flo/resources/base.py/BaseResource.__init__/original