code: def open(self, interface_name, namespaced=False, connection=None):
          
  
          if not connection:
              connection = self.open_connection()
  
          if interface_name not in self._interfaces:
              self.get_interface(interface_name, socket_connection=connection)
  
          if interface_name not in self._interfaces:
              raise InterfaceNotFound(interface_name)
  
          return self.handler(self._interfaces[interface_name], connection, namespaced=namespaced)
docs: Open a new connection and get a client interface handle with the varlink methods installed.
  
          :param interface_name: an interface name, which the service this client object is
                                 connected to, provides.
          :param namespaced: If arguments and return values are instances of SimpleNamespace
                              rather than dictionaries.
          :param connection: If set, get the interface handle for an already opened connection.
          :exception InterfaceNotFound: if the interface is not found