code: def train_fn(config):
      # Retrieve the model from the object store.
      model = ray.get(config["model_ref"])
      print(model.model_id)
  
file_path: ray/doc/source/tune/doc_code/fault_tolerance.py
imports: import json
  import os
  import tempfile
  from ray import train, tune
  from ray.train import Checkpoint
  import os
  from ray import train, tune
  import ray
  from ray import train, tune
  from ray import train, tune
label_desc: Use image node_id 2 for calling a global function with example usage: train_fn(config) without return types