code: def run(command, env_extra=None, check=1):
      """
      Runs a command using subprocess.run().
      Args:
          command:
              The command to run.
          env_extra:
              None or dict containing extra environment variable settings to add
              to os.environ.
          check:
              Whether to raise exception if command fails.
      """
      env = None
      if env_extra:
          env = os.environ.copy()
          env.update(env_extra)
      log(f"Running: {command}")
      return subprocess.run(command, check=check, shell=1, env=env)
  
file_path: pymudf/scripts/gh_release.py
imports: import glob
  import inspect
  import os
  import platform
  import shlex
  import subprocess
  import sys
  import textwrap
label_desc: Use image node_id 9 for calling a global function with example usage: run(command, env_extra, check) and returns: subprocess