def METHOD_NAME(args):
  """Invokes a shell command."""
  logging.debug('Executing command: %s', args)
  child = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  output, _ = child.communicate()
  exit_code = child.returncode
  return output.decode('utf-8'), exit_code