code: def _coerce_to_int(obj):
      """Coerces numpy int or list of numpy int to python int."""
      if isinstance(obj, np.integer):
          return int(obj)
      if isinstance(obj, list):
          return [_coerce_to_int(x) for x in obj]
      return obj
  
imports: import numpy
  import pandas
  from sktime.transformations.base import BaseTransformer
  from sktime.utils.multiindex import flatten_multiindex
  from sktime.utils.warnings import warn
label_desc: Use image node_id 1 for calling a global function with example usage: _coerce_to_int(obj) and returns: obj, int, unknown