class_docstr: Wrapper class used to load operators from either local cache or a remote
  location.
  
  Args:
      cache_path: (`str`)
          Local cache path to use. If not specified, it will default to
          `$HOME/.towhee/operators`.
class_docstr_tok: ["Wrapper","class","used","to","load","operators","from","either","local","cache","or","a","remote","location",".","Args",":","cache_path",":","(","`","str","`",")","Local","cache","path","to","use",".","If","not","specified",",","it","will","default","to","`","$","HOME\/.towhee\/operators","`","."]
code: def _load_operator_from_hub(
      self,
      function: str,
      arg: List[Any],
      kws: Dict[str, Any],
      tag: str,
      latest: bool,
  ) -> Operator:
      if "/" not in function:
          function = "towhee/" + function
      try:
          path = get_operator(operator=function, tag=tag, latest=latest)
      except Exception as e:  # pylint: disable=broad-except
          err = "{}, {}".format(str(e), traceback.format_exc())
          engine_log.error(err)
          return None
  
      return self._load_operator_from_path(
          path, function, arg, kws, tag
      )
  
imports: import importlib
  import sys
  import subprocess
  from pathlib import Path
  from typing import Any, List, Dict, Union
  import re
  import traceback
  import pkg_resources
  import hashlib
  from towhee.operator import Operator
  from towhee.operator.nop import NOPNodeOperator
  from towhee.hub import get_operator
  from towhee.runtime.constants import OPName
  from towhee.utils.log import engine_log
  from .operator_registry import OperatorRegistry
label_desc: Use image node_id 6 for calling the OperatorLoader obj's underlying member method code with example usage: obj._load_operator_from_hub(function, arg, kws, tag, latest) and returns: self, None