docs: def linked_model_for_class(self, cls, make_constants_variable=False, **kwargs):
          """
          Create a PriorModel wrapping the specified class with attributes from this instance. Priors can be overridden
          using keyword arguments. Any constructor arguments of the new class for which there is no attribute associated
          with this class and no keyword argument are created from config.
  
          If make_constants_variable is True then constants associated with this instance will be used to set the mean
          of priors in the new instance rather than overriding them.
  
          Parameters
          ----------
          cls: class
              The class that the new PriorModel will wrap
          make_constants_variable: bool
              If True constants from this instance will be used to determine the mean values for priors in the new
              instance rather than overriding them
          kwargs
              Keyword arguments passed in here are used to override attributes from this instance or add new attributes
  
          Returns
          -------
          new_model: PriorModel
              A new prior model with priors derived from this instance
          """
          constructor_args = inspect.getfullargspec(cls).args
          attribute_tuples = self.attribute_tuples
          new_model = PriorModel(cls)
          for attribute_tuple in attribute_tuples:
              name = attribute_tuple.name
              if name in constructor_args or (
                      is_tuple_like_attribute_name(name) and tuple_name(name) in constructor_args):
                  attribute = kwargs[name] if name in kwargs else attribute_tuple.value
                  if make_constants_variable and isinstance(attribute, Constant):
                      new_attribute = getattr(new_model, name)
                      if isinstance(new_attribute, Prior):
                          new_attribute.mean = attribute.value
                          continue
                  setattr(new_model, name, attribute)
          return new_model