class_docstr: Joint model Enhancement and Speech to Text.
class_docstr_tok: ["Joint","model","Enhancement","and","Speech","to","Text","."]
code: def inherite_attributes(
      self,
      inherite_enh_attrs: List[str] = [],
      inherite_s2t_attrs: List[str] = [],
  ):
      assert check_argument_types()
  
      if len(inherite_enh_attrs) > 0:
          for attr in inherite_enh_attrs:
              setattr(self, attr, getattr(self.enh_model, attr, None))
      if len(inherite_s2t_attrs) > 0:
          for attr in inherite_s2t_attrs:
              setattr(self, attr, getattr(self.s2t_model, attr, None))
  
imports: import logging
  import random
  from contextlib import contextmanager
  from typing import Dict, List, Tuple, Union
  import numpy
  import torch
  import torch.nn.functional
  from packaging.version import parse
  from scipy.optimize import linear_sum_assignment
  from typeguard import check_argument_types
  from espnet2.asr.espnet_model import ESPnetASRModel
  from espnet2.diar.espnet_model import ESPnetDiarizationModel
  from espnet2.enh.espnet_model import ESPnetEnhancementModel
  from espnet2.st.espnet_model import ESPnetSTModel
  from espnet2.torch_utils.device_funcs import force_gatherable
  from espnet2.train.abs_espnet_model import AbsESPnetModel
label_desc: Use image node_id 10 for calling the ESPnetEnhS2TModel obj's underlying member method code with example usage: obj.inherite_attributes(inherite_enh_attrs, inherite_s2t_attrs) without return types