code: def get_object(self, mpath, path=None, accept="*/*"):
          
          res, content = self.get_object2(mpath, path=path, accept=accept)
          try:
              if isinstance(content, bytes):
                  return content.decode(sys.stdout.encoding)
              else:
                  return content
          except UnicodeDecodeError:
              return content
docs: GetObject
          https://apidocs.joyent.com/manta/api.html#GetObject
  
          @param mpath {str} Required. A manta path, e.g. '/trent/stor/myobj'.
          @param path {str} Optional. If given, the retrieved object will be
              written to the given file path instead of the content being
              returned.
          @param accept {str} Optional. Default is '*/*'. The Accept header
              for content negotiation.
          @returns {str|None} None if `path` is provided, else the object
              content.