class_docstr: Base default handler to load torchscript or eager mode [state_dict] models
  Also, provides handle method per torch serve custom model specification
class_docstr_tok: ["Base","default","handler","to","load","torchscript","or","eager","mode","[","state_dict","]","models","Also",",","provides","handle","method","per","torch","serve","custom","model","specification"]
code: def _use_torch_export_aot_compile(self):
      torch_export_aot_compile = False
      if (
          hasattr(self, "model_yaml_config")
          and "pt2" in self.model_yaml_config
      ):
          # Check if torch._export.aot_compile is being used
          pt2_value = self.model_yaml_config["pt2"]
          export_value = pt2_value.get("export", None)
          if (
              isinstance(export_value, dict)
              and "aot_compile" in export_value
          ):
              torch_export_aot_compile = (
                  True if export_value["aot_compile"] == True else False
              )
      return torch_export_aot_compile
  
imports: import abc
  import importlib.util
  import logging
  import os
  import time
  import torch
  from pkg_resources import packaging
  from ts.handler_utils.timer import timed
  from ..utils.util import check_valid_pt2_backend, list_classes_from_module, load_label_mapping
label_desc: Use image node_id 6 for calling the BaseHandler obj's underlying member method code with example usage: obj._use_torch_export_aot_compile() and returns: torch_export_aot_compile