code: def train(params, fpath, hyperopt=False):
      """
      Proxy function used to call _train
      :param params: hyperparameters. Its structure is consistent with how search space is defined. See below.
      :param fpath: Path or URL for the training data used with the model.
      :param hyperopt: Use hyperopt for hyperparameter search during training.
      :return: dict with fields 'loss' (scalar loss) and 'status' (success/failure status of run)
      """
      with mlflow.start_run(nested=True):
          return _train(params, fpath, hyperopt)
  
file_path: mlflow/examples/rapids/mlflow_project/src/rf_test/train.py
imports: import argparse
  from functools import partial
  from cuml.ensemble import RandomForestClassifier
  from cuml.metrics.accuracy import accuracy_score
  from cuml.preprocessing.model_selection import train_test_split
  from hyperopt import STATUS_OK, Trials, fmin, hp, tpe
  import mlflow
  import mlflow.sklearn
  from mlflow.models import infer_signature
label_desc: Use image node_id 3 for calling a global function with example usage: train(params, fpath, hyperopt) and returns: _train