code: def fit_model(path, df_train, target, fit_args=None):
      if fit_args is None:
          fit_args = {"hyperparameters": {"RF": {}}}
  
      predictor = TabularPredictor(
          path=path, label=target, verbosity=0
      ).fit(
          df_train,
          **fit_args,
      )
      return predictor
  
file_path: autogluon/eda/tests/unittests/analysis/test_model.py
imports: import os.path
  import tempfile
  import pandas
  import pytest
  import autogluon.eda.analysis
  import autogluon.eda.auto
  from autogluon.core.constants import REGRESSION
  from autogluon.tabular import TabularPredictor
label_desc: Use image node_id 1 for calling a global function with example usage: fit_model(path, df_train, target, fit_args) and returns: predictor