code: def transform_input(
      self, prompt: str, model_kwargs: typing.Dict
  ) -> bytes:
      input_dict = {"inputs": prompt, "parameters": model_kwargs}
      return json.dumps(input_dict).encode("utf-8")
  
file_path: h2ogpt/src/sagemaker.py
imports: import os
  import typing
  import json
  from langchain.llms import SagemakerEndpoint
  from langchain.llms.sagemaker_endpoint import LLMContentHandler
  from pydantic.v1 import root_validator
  from src.utils import FakeTokenizer
label_desc: Use image node_id 1 for calling the BaseContentHandler obj's underlying member method code with example usage: obj.transform_input(prompt, model_kwargs) and returns: json