code: def is_in_slurm_step() -> bool:
      return (
          is_in_slurm_job()
          and "SLURM_STEP_NUM_NODES" in os.environ
          and "SLURM_STEP_NODELIST" in os.environ
      )
  
imports: import dataclasses
  import os
  import socket
  from typing import Optional
  import torch
  import torch.distributed
label_desc: Use image node_id 3 for calling a global function with example usage: is_in_slurm_step() and returns: unknown