code: def model_entrypoint(
      model_name: str, module_filter: Optional[str] = None
  ) -> Callable[..., Any]:
      """Fetch a model entrypoint for specified model name"""
      arch_name = get_arch_name(model_name)
      if module_filter and arch_name not in _module_to_models.get(
          module_filter, {}
      ):
          raise RuntimeError(
              f"Model ({model_name} not found in module {module_filter}."
          )
      return _model_entrypoints[arch_name]
  
imports: import fnmatch
  import re
  import sys
  import warnings
  from collections import defaultdict, deque
  from copy import deepcopy
  from dataclasses import replace
  from typing import Any, Callable, Dict, Iterable, List, Optional, Set, Sequence, Union, Tuple
  from ._pretrained import PretrainedCfg, DefaultCfg
label_desc: Use image node_id 13 for calling a global function with example usage: model_entrypoint(model_name, module_filter) and returns: _model_entrypoints