code: def unsubscribe(client, name, method, cmd, *args, **kwargs):
      """Unsubscribe from an event that occurs on the Perspective server
      implementation, like `remove_update`."""
      arguments = list(args)
      callback = None
  
      for i in range(len(arguments)):
          if callable(arguments[i]):
              callback = arguments.pop(i)
  
      if len(kwargs) > 0:
          arguments.append(kwargs)
  
      callback_id = client._callback_cache.get(callback)
      del client._callback_cache[callback]
      del client._callback_id_cache[callback_id]
  
      msg = {
          "cmd": cmd,
          "name": name,
          "method": method,
          "args": arguments,
          "subscribe": True,
          "callback_id": callback_id,
      }
  
      client.post(msg, keep_alive=True)
  
label_desc: Use image node_id 3 for calling a global function with example usage: unsubscribe(client, name, method, cmd) without return types