@classmethod
	def item_factory(cls, goal_item):
		# Flatten the dep graph to a topsort, instantiate all items, then override depends attributes
		items = set(cls.early_iter_all_items(goal_item))
		instancemap = cls.instantiate_items(items)
		return instancemap[goal_item]
instantiate all items in a dependency tree from an end-goal item
dataset/ETHPy150Open anchor/make-magic/core/deptools.py/SimpleDependencyStrategy.item_factory