code: def get_index_type(data):
      """
      Identify the type of the dataframe index.
      Parameters
      ----------
      data : pd.DataFrame
          Dataset of the features
  
      Returns
      -------
      str
          Type numeric or text of the dataset index
      """
      if data.index.is_numeric():
          return "number"
      else:
          return "text"
  
imports: import pandas
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: get_index_type(data) and returns: str, str