class_docstr: Mixin class for flag and configuration settings management.
docstr: Clone/mirror flags from another estimator as dynamic override.
  
  Parameters
  ----------
  estimator : estimator inheriting from :class:BaseEstimator
  flag_names : str or list of str, default = None
      Names of flags to clone. If None then all flags in estimator are used
      as `flag_names`.
  flag_attr_name : str, optional, default = "_flags"
      name of the flag attribute that is read
  
  Returns
  -------
  Self :
      Reference to self.
  
  Notes
  -----
  Changes object state by setting flag values in flag_set from estimator as
  dynamic flags in self.
code: def _clone_flags(
      self, estimator, flag_names=None, flag_attr_name="_flags"
  ):
      """Clone/mirror flags from another estimator as dynamic override.
  
      Parameters
      ----------
      estimator : estimator inheriting from :class:BaseEstimator
      flag_names : str or list of str, default = None
          Names of flags to clone. If None then all flags in estimator are used
          as `flag_names`.
      flag_attr_name : str, optional, default = "_flags"
          name of the flag attribute that is read
  
      Returns
      -------
      Self :
          Reference to self.
  
      Notes
      -----
      Changes object state by setting flag values in flag_set from estimator as
      dynamic flags in self.
      """
      flags_est = deepcopy(
          estimator._get_flags(flag_attr_name=flag_attr_name)
      )
  
      # if flag_set is not passed, default is all flags in estimator
      if flag_names is None:
          flag_names = flags_est.keys()
      else:
          # if flag_set is passed, intersect keys with flags in estimator
          if not isinstance(flag_names, list):
              flag_names = [flag_names]
          flag_names = [
              key for key in flag_names if key in flags_est.keys()
          ]
  
      update_dict = {key: flags_est[key] for key in flag_names}
  
      self._set_flags(flag_attr_name=flag_attr_name, **update_dict)
  
      return self
  
file_path: sktime/sktime/base/_tagmanager.py
imports: import inspect
  from copy import deepcopy
label_desc: Use image node_id 7 for calling the _FlagManager obj's underlying member method code with example usage: obj._clone_flags(estimator, flag_names, flag_attr_name) and returns: self