code: def to_rpc_obj(self):
      return {
          "request_id": self.request_id,
          "input_id": self.prompt_ids,
          "output_len": self.max_output_len,
          "sampling_param": self.sample_params.to_dict(),
      }
  
imports: from typing import Dict, List, Tuple
  from .sampling_params import SamplingParams
label_desc: Use image node_id 2 for calling the Req obj's underlying member method code with example usage: obj.to_rpc_obj() and returns: dict