code: def _s3api_output(self, name, args):
      cmd = [_aws_cmd()]
      if self.region:
          cmd.extend(["--region", self.region])
      cmd.extend(["s3api", name] + args)
      log.debug("aws cmd: %r", cmd)
      try:
          return subprocess.check_output(
              cmd, env=self._cmd_env(), stderr=subprocess.STDOUT
          )
      except subprocess.CalledProcessError as e:
          raise remotelib.RemoteProcessError.for_called_process_error(e)
  
imports: import itertools
  import logging
  import os
  import subprocess
  import sys
  import uuid
  from guild import remote
  from guild import remote_util
  from guild import util
  from guild import var
  from .None import meta_sync
label_desc: Use image node_id 6 for calling the S3Remote obj's underlying member method code with example usage: obj._s3api_output(name, args) and returns: subprocess