code: def train_func(config):
      # Delete DELETE_TRIAL_MARKER
      delete_marker = config["delete_marker"]
      if delete_marker and Path(delete_marker).exists():
          Path(delete_marker).unlink()
  
      # Wait for HANG_TRIAL_MARKER
      hang_marker = config["hang_marker"]
      while hang_marker and Path(hang_marker).exists():
          time.sleep(0.1)
  
      # Finish trial
      train.report({"param": config["param"], "fixed": config["fixed"]})
  
imports: from pathlib import Path
  import os
  import time
  from ray import train, tune
  from ray.train.data_parallel_trainer import DataParallelTrainer
  from ray.tune.search import BasicVariantGenerator
label_desc: Use image node_id 1 for calling a global function with example usage: train_func(config) without return types