code: def _prepare_cmd_bcprun(
      cmd: str, cmd_prefix: str | None = None, **kwargs: Any
  ) -> str:
      """
      Prepare the command for distributed job running using bcprun.
  
      Args:
          script: the script to run in the distributed job.
          cmd_prefix: the command prefix to run the script, e.g., "python".
          kwargs: the keyword arguments to be passed to the script.
  
      Returns:
          The command to run the script in the distributed job.
  
      Examples:
          For command "bcprun -n 2 -p 8 -c python train.py run -k --config 'a,b'",
          it only prepares command after the bcprun arguments, i.e., "train.py run -k --config 'a,b'".
          the function can be called as
          - _prepare_cmd_bcprun("train.py run -k", config=['a','b'], n=2, p=8)
          - _prepare_cmd_bcprun("train.py run -k --config 'a,b'", n=2, p=8)
      """
  
      return _prepare_cmd_default(cmd, cmd_prefix=cmd_prefix, **kwargs)
  
imports: from __future__ import annotations
  import logging
  import os
  import pickle
  import subprocess
  import sys
  from copy import deepcopy
  from numbers import Number
  from typing import Any, cast
  import numpy
  import torch
  from monai.auto3dseg import Algo
  from monai.bundle.config_parser import ConfigParser
  from monai.bundle.utils import ID_SEP_KEY
  from monai.config import PathLike
  from monai.data.meta_tensor import MetaTensor
  from monai.transforms import CropForeground, ToCupy
  from monai.utils import min_version, optional_import, run_cmd
label_desc: Use image node_id 14 for calling a global function with example usage: _prepare_cmd_bcprun(cmd, cmd_prefix) and returns: _prepare_cmd_default