code: def instance(self_or_cls,**params):
          
  
          if isinstance (self_or_cls,ParameterizedMetaclass):
              cls = self_or_cls
          else:
              p = params
              params = dict(self_or_cls.get_param_values())
              params.update(p)
              params.pop('name')
              cls = self_or_cls.__class__
  
          inst=Parameterized.__new__(cls)
          Parameterized.__init__(inst,**params)
          if 'name' in params:  inst.__name__ = params['name']
          else:                 inst.__name__ = self_or_cls.name
          return inst
docs: Return an instance of this class, copying parameters from any
          existing instance provided.