code: def get_list_index(lst, index_or_name):
      
      if isinstance(index_or_name, six.integer_types):
          return index_or_name
  
      return lst.index(index_or_name)
docs: Return the index of an element in the list.
  
      Args:
          lst (list): The list.
          index_or_name (int or str): The value of the reference element, or directly its numeric index.
  
      Returns:
          (int) The index of the element in the list.