class_docstr: TorchServe 1.0 Model Loader
code: def _get_class_entry_point(self, module):
      model_class_definitions = list_classes_from_module(module)
      if len(model_class_definitions) != 1:
          raise ValueError(
              "Expected only one class in custom service code or a function entry point {}".format(
                  model_class_definitions
              )
          )
  
      model_class = model_class_definitions[0]
      model_service = model_class()
  
      if not hasattr(model_service, "handle"):
          raise ValueError(
              "Expect handle method in class {}".format(
                  str(model_class)
              )
          )
  
      return model_service.handle, model_service.initialize
  
imports: import importlib
  import json
  import logging
  import os
  import uuid
  from abc import ABCMeta, abstractmethod
  from builtins import str
  from typing import Optional
  from ts.metrics.metric_cache_yaml_impl import MetricsCacheYamlImpl
  from ts.service import Service
  from .utils.util import list_classes_from_module
label_desc: Use image node_id 6 for calling the TsModelLoader obj's underlying member method code with example usage: obj._get_class_entry_point(module) and returns: model_service,  model_service