code: def func(config):
      starting_epoch = 0
      checkpoint = train.get_checkpoint()
      if checkpoint:
          with checkpoint.as_directory() as checkpoint_dir:
              with open(
                  os.path.join(checkpoint_dir, "ckpt.pkl"), "rb"
              ) as f:
                  checkpoint_dict = pickle.load(f)
          checkpoint_epoch = checkpoint_dict["epoch"]
          starting_epoch = checkpoint_epoch + 1
  
      for epoch in range(starting_epoch, 1000):
          checkpoint_dict = {
              "epoch": epoch,
              "large_data": np.zeros(10000000),
          }
          with tempfile.TemporaryDirectory() as tmpdir:
              with open(os.path.join(tmpdir, "ckpt.pkl"), "wb") as f:
                  pickle.dump(checkpoint_dict, f)
              train.report(
                  {}, checkpoint=Checkpoint.from_directory(tmpdir)
              )
  
file_path: ray/release/air_tests/frequent_pausing/script.py
imports: import numpy
  import os
  import pickle
  import tempfile
  from ray import train
  from ray.train import Checkpoint, RunConfig
  from ray.tune.schedulers.trial_scheduler import FIFOScheduler, TrialScheduler
  from ray.tune.tune_config import TuneConfig
  from ray.tune.tuner import Tuner
label_desc: Use image node_id 1 for calling a global function with example usage: func(config) without return types