<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def instantiate_resolver(self, name, args):
 """Directly instantiate a dependency resolver by name with the given arguments Args: name (string):
 The name of the class that we want to instantiate args (dict):
 The arguments to pass to the resolver factory Returns: DependencyResolver """

        if name not in self._known_resolvers:
            raise ArgumentError("Attempting to instantiate unknown dependency resolver", name=name)

        return self._known_resolvers[name](args)