code: def extract_attrs_from_obj(obj, *attrs):
      if obj is None:
          assert len(attrs) == 0
          return []
      return [getattr(obj, attr, None) for attr in attrs]
  
file_path: espnet/espnet2/asr/state_spaces/utils.py
imports: import functools
  from typing import Callable, Mapping, Sequence
  import hydra
  from omegaconf import DictConfig, ListConfig
label_desc: Use image node_id 5 for calling a global function with example usage: extract_attrs_from_obj(obj) and returns: unknown, list