code: def str_or_int(value: str) -> Union[str, int]:
      try:
          return int(value)
      except ValueError:
          return value
  
file_path: espnet/espnet2/utils/types.py
imports: from distutils.util import strtobool
  from typing import Optional, Tuple, Union
  import humanfriendly
label_desc: Use image node_id 7 for calling a global function with example usage: str_or_int(value) and returns: int, value