code: def model_fit_task_ray(
      X_fold,
      X_val_fold,
      fold_model,
      kwargs_fold,
      time_limit_fold,
      y_fold,
      y_val_fold,
  ):
      fold_model.fit(
          X=X_fold,
          y=y_fold,
          X_val=X_val_fold,
          y_val=y_val_fold,
          time_limit=time_limit_fold,
          **kwargs_fold,
      )
      time_train_end_fold = time.time()
      return fold_model, time_train_end_fold
  
file_path: autogluon/core/src/autogluon/core/models/ensemble/ray_parallel_fold_fitting_strategy.py
imports: import time
  import ray
  from numpy import ndarray
  from pandas import DataFrame, Series
  from ray.util import placement_group, placement_group_table
  from autogluon.core.models.ensemble.fold_fitting_strategy import SequentialLocalFoldFittingStrategy
label_desc: Use image node_id 1 for calling a global function with example usage: model_fit_task_ray(X_fold, X_val_fold, fold_model, kwargs_fold, time_limit_fold, y_fold, y_val_fold) and returns: fold_model,  time_train_end_fold