code: def shlex_join(cmd):
      if sys.version_info >= (3, 8):
          return shlex.join(cmd)
      else:
          return " ".join(pipes.quote(part) for part in cmd)
  
imports: import argparse
  import copy
  import logging
  import os
  import platform
  import subprocess
  import sys
  import tempfile
  from typing import Dict
label_desc: Use image node_id 2 for calling the CmdRunner obj's underlying member method code with example usage: obj.shlex_join(cmd) and returns: shlex, str