class_docstr: Base Model Loader class.
docstr: Load model from file.
  
  :param model_name:
  :param model_dir:
  :param handler:
  :param gpu_id:
  :param batch_size:
  :param envelope:
  :param limit_max_image_pixels:
  :return: Model
docstr_tok: ["Load","model","from","file",".",":","param","model_name",":",":","param","model_dir",":",":","param","handler",":",":","param","gpu_id",":",":","param","batch_size",":",":","param","envelope",":",":","param","limit_max_image_pixels",":",":","return",":","Model"]
code: def load(
      self,
      model_name: str,
      model_dir: str,
      handler: Optional[str] = None,
      gpu_id: Optional[int] = None,
      batch_size: Optional[int] = None,
      envelope: Optional[str] = None,
      limit_max_image_pixels: Optional[bool] = True,
  ):
      """
      Load model from file.
  
      :param model_name:
      :param model_dir:
      :param handler:
      :param gpu_id:
      :param batch_size:
      :param envelope:
      :param limit_max_image_pixels:
      :return: Model
      """
      # pylint: disable=unnecessary-pass
      pass
  
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 1 for calling the ModelLoader obj's underlying member method code with example usage: obj.load(model_name, model_dir, handler, gpu_id, batch_size, envelope, limit_max_image_pixels) without return types