code: def create_test_df():
      df = pd.DataFrame(
          {
              "int_col": [1, 2],
              "float_col": [1.2, 4.5],
              "str_col": ["foo", "bar"],
          }
      )
      return df.astype(
          {"int_col": "int64", "float_col": "float64", "str_col": "str"}
      )
  
file_path: AIX360/tests/rule_induction/ripper/test_base.py
imports: from unittest import TestCase
  from sklearn.preprocessing import LabelEncoder
  import pandas
  from aix360.algorithms.rule_induction.ripper import base
label_desc: Use image node_id 1 for calling a global function with example usage: create_test_df() and returns: df