code: def config(self, **kwds):
      """configure a remote command using given keywords:
  
      (Re)configure the copier for the following inputs:
          host: hostname to recieve command [user@host is also valid]
          command: a command to send  [default = 'echo <name>']
          launcher: remote service mechanism (i.e. ssh, rsh)  [default = 'ssh']
          options: remote service options (i.e. -v, -N, -L)  [default = '']
          background: run in background  [default = False]
          decode: ensure response is 'ascii'  [default = True]
          stdin: file-like object to serve as standard input for the remote process
      """
      if self.message is None:
          self.message = "echo %s" % self.name  #' '?
      else:  # pare back down to 'command' # better, just save _command?
          if self.launcher:
              self.message = self.message.split(self.launcher, 1)[-1]
          if self.options:
              self.message = self.message.split(self.options, 1)[-1]
          if self.host:
              self.message = self.message.split(self.host, 1)[
                  -1
              ].strip()
          quote = ('"', "'")
          if self.message.startswith(quote) or self.message.endswith(
              quote
          ):
              self.message = self.message[1:-1]
      if self.stdin is None:
          import sys
  
          self.stdin = sys.stdin
      for key, value in kwds.items():
          if key == "command":
              self.message = value
          elif key == "host":
              self.host = value
          elif key == "launcher":
              self.launcher = value
          elif key == "options":
              self.options = value
          elif key == "background":
              self.background = value
          elif key == "decode":
              self.codec = value
          elif key == "stdin":
              self.stdin = value
  
      self._stdout = None
      self.message = '%s %s %s "%s"' % (
          self.launcher,
          self.options,
          self.host,
          self.message,
      )
      names = [
          "message",
          "host",
          "launcher",
          "options",
          "background",
          "stdin",
          "codec",
      ]
      return dict((i, getattr(self, i)) for i in names)
  
imports: from pathos.connection import Pipe
label_desc: Use image node_id 2 for calling the Pipe obj's underlying member method code with example usage: obj.config() and returns: dict