code: def get_ckpt_hdfs(remote_dir, local_ckpt):
      """
      Get checkpoint file from hdfs as local_ckpt
      Remote checkpoint dir is {remote_dir}/{ray_checkpoint_dir}[-IDENTIFIER_LEN:].
      """
      ckpt_name = os.path.basename(local_ckpt)
      local_ckpt_dir = os.path.dirname(local_ckpt)
      remote_ckpt_basename = os.path.basename(local_ckpt_dir)[
          -IDENTIFIER_LEN:
      ]
      remote_ckpt = os.path.join(
          remote_dir, remote_ckpt_basename, ckpt_name
      )
  
      cmd = "hadoop fs -get {} {}".format(remote_ckpt, local_ckpt_dir)
      process(cmd)
  
imports: import os
label_desc: Use image node_id 4 for calling a global function with example usage: get_ckpt_hdfs(remote_dir, local_ckpt) without return types