code: def input_fn(input_data, content_type):
      """Placeholder docstring"""
      try:
          if hasattr(schema_builder, "custom_input_translator"):
              return schema_builder.custom_input_translator.deserialize(
                  io.BytesIO(input_data), content_type
              )
          else:
              return schema_builder.input_deserializer.deserialize(
                  io.BytesIO(input_data), content_type[0]
              )
      except Exception as e:
          raise Exception(
              "Encountered error in deserialize_request."
          ) from e
  
file_path: sagemaker-python-sdk/src/sagemaker/serve/model_server/torchserve/xgboost_inference.py
imports: from __future__ import absolute_import
  import os
  import io
  import subprocess
  import cloudpickle
  import shutil
  import platform
  from pathlib import Path
  from functools import partial
  import logging
label_desc: Use image node_id 2 for calling a global function with example usage: input_fn(input_data, content_type) and returns: schema_builder, schema_builder