code: def test_throws_warning_when_fl_data_equals_df_train():
      (
          df_titanic_train,
          df_titanic_test,
      ) = utils.get_titanic_binary_classification_dataset()
  
      column_descriptions = {
          "survived": "output",
          "sex": "categorical",
          "embarked": "categorical",
          "pclass": "categorical",
      }
  
      ml_predictor = Predictor(
          type_of_estimator="classifier",
          column_descriptions=column_descriptions,
      )
  
      with warnings.catch_warnings(record=True) as w:
          try:
              ml_predictor.train(
                  df_titanic_train,
                  feature_learning=True,
                  fl_data=df_titanic_train,
              )
          except KeyError as e:
              pass
          # We should not be getting to this line- we should be throwing an error above
          for thing in w:
              print(thing)
          assert len(w) >= 1
      assert True
  
file_path: auto_ml/tests/advanced_tests/advanced_install_tests.py
imports: import datetime
  import os
  import random
  import sys
  import warnings
  from auto_ml import Predictor
  from auto_ml.utils_models import load_ml_model
  import dill
  import numpy
  from nose.tools import assert_equal, assert_not_equal, with_setup
  from sklearn.metrics import accuracy_score
  from sklearn.model_selection import train_test_split
  import utils_testing
label_desc: Use image node_id 7 for calling a global function with example usage: test_throws_warning_when_fl_data_equals_df_train() without return types