code: def get_index(lst, name):
      try:
          result = lst.index(name)
      except Exception:
          if not isinstance(name, int):
              raise
          result = name
      return result
  
file_path: statsmodels/statsmodels/tsa/vector_ar/util.py
imports: from statsmodels.compat.pandas import frequencies
  from statsmodels.compat.python import asbytes
  from statsmodels.tools.validation import array_like, int_like
  import numpy
  import pandas
  from scipy import stats, linalg
  import statsmodels.tsa.tsatools
label_desc: Use image node_id 9 for calling a global function with example usage: get_index(lst, name) and returns: result