code: def new(self, name, *args, **kwargs):
          '''Create an instance.
  
          Args:
              name (str): The name of the class
              args: The arguments to pass to the class.
              kwargs: The keyword arguments to pass to the class.
  
          Returns:
              instance
          '''
          if name in self._instance_map:
              raise ValueError('Instance {0} is already initialized'
                               .format(name))
  
          instance = self._class_map[name](*args, **kwargs)
          self._instance_map[name] = instance
          return instancf new(self, name, *args, **kwargs):
          '''Create an instance.
  
          Args:
              name (str): The name of the class
              args: The arguments to pass to the class.
              kwargs: The keyword arguments to pass to the class.
  
          Returns:
              instance
          '''
          if name in self._instance_map:
              raise ValueError('Instance {0} is already initialized'
                               .format(name))
  
          instance = self._class_map[name](*args, **kwargs)
          self._instance_map[name] = instance
          return instance
docs: Create an instance.
  
          Args:
              name (str): The name of the class
              args: The arguments to pass to the class.
              kwargs: The keyword arguments to pass to the class.
  
          Returns:
              instance