code: def get_model_builder(name: str) -> Callable[..., nn.Module]:
      """
      Gets the model name and returns the model builder method.
  
      Args:
          name (str): The name under which the model is registered.
  
      Returns:
          fn (Callable): The model builder method.
      """
      name = name.lower()
      try:
          fn = BUILTIN_MODELS[name]
      except KeyError:
          raise ValueError(f"Unknown model {name}")
      return fn
  
imports: import fnmatch
  import importlib
  import inspect
  import sys
  from dataclasses import dataclass
  from enum import Enum
  from functools import partial
  from inspect import signature
  from types import ModuleType
  from typing import Any, Callable, Dict, Iterable, List, Mapping, Optional, Set, Type, TypeVar, Union
  from torch import nn
  from .._internally_replaced_utils import load_state_dict_from_url
label_desc: Use image node_id 6 for calling a global function with example usage: get_model_builder(name) and returns: fn