code: def cmd(user_script_fp, prompt, multi_node):
      if multi_node:
          cmd = (
              "deepspeed",
              "--force_multi",
              "--num_nodes",
              "1",
              "--num_gpus",
              "1",
              user_script_fp,
              "--prompt",
              prompt,
          )
      else:
          cmd = (
              "deepspeed",
              "--num_nodes",
              "1",
              "--num_gpus",
              "1",
              user_script_fp,
              "--prompt",
              prompt,
          )
      return cmd
  
imports: import pytest
  import subprocess
  from deepspeed.accelerator import get_accelerator
label_desc: Use image node_id 2 for calling a global function with example usage: cmd(user_script_fp, prompt, multi_node) and returns: cmd