class_docstr: A runnable command.
  
  Class inheriting from the Command class must provide the bin
  property/attribute.
class_docstr_tok: ["A","runnable","command",".","Class","inheriting","from","the","Command","class","must","provide","the","bin","property\/attribute","."]
code: def run(self, *argv, **kwargs):
      assert hasattr(self, "bin")
      invocation = shlex.split(self.bin)
      invocation.extend(argv)
  
      for key in ["stdout", "stderr"]:
          # Preserve caller intention, otherwise silence
          if key not in kwargs and ctx.quiet:
              kwargs[key] = subprocess.PIPE
  
      # Prefer safe by default
      if "check" not in kwargs:
          kwargs["check"] = True
  
      logger.debug("Executing `{}`".format(invocation))
      return subprocess.run(invocation, **kwargs)
  
file_path: arrow/dev/archery/archery/utils/command.py
imports: import os
  import shlex
  import shutil
  import subprocess
  from .logger import logger, ctx
label_desc: Use image node_id 2 for calling the Command obj's underlying member method code with example usage: obj.run() and returns: subprocess