code: def _pickle_file_integrity_check():
      with open("/opt/ml/model/code/serve.pkl", "rb") as f:
          buffer = f.read()
  
      metadeata_path = Path("/opt/ml/model/code/metadata.json")
      perform_integrity_check(
          buffer=buffer, metadata_path=metadeata_path
      )
  
file_path: sagemaker-python-sdk/src/sagemaker/serve/model_server/torchserve/inference.py
imports: from __future__ import absolute_import
  import os
  import io
  import cloudpickle
  import shutil
  import platform
  from pathlib import Path
  from functools import partial
  from sagemaker.serve.validations.check_integrity import perform_integrity_check
  from sagemaker.serve.spec.inference_spec import InferenceSpec
  from sagemaker.serve.detector.image_detector import _detect_framework_and_version, _get_model_base
  from sagemaker.serve.detector.pickler import load_xgboost_from_json
  import logging
label_desc: Use image node_id 7 for calling a global function with example usage: _pickle_file_integrity_check() without return types