@classmethod
	def instantiate_items(cls, items):
		# Pre: All items, including all deps, are in 'items'
		instancemap = dict((item, item()) for item in items) # Only ever instantiate each item once
		iteminstances = map(instancemap.get, items)
		for inst in iteminstances:
			inst.depends = tuple(map(instancemap.get, inst.depends))
			if isinstance(inst,Group):
				inst.contains = tuple(map(instancemap.get, inst.contains))
		return instancemap
returns a map from classes to instances
dataset/ETHPy150Open anchor/make-magic/core/deptools.py/SimpleDependencyStrategy.instantiate_items