code: def is_model_in_modules(
      model_name: str,
      module_names: Union[Tuple[str, ...], List[str], Set[str]],
  ) -> bool:
      """Check if a model exists within a subset of modules
  
      Args:
          model_name - name of model to check
          module_names - names of modules to search in
      """
      arch_name = get_arch_name(model_name)
      assert isinstance(module_names, (tuple, list, set))
      return any(
          arch_name in _module_to_models[n] for n in module_names
      )
  
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 15 for calling a global function with example usage: is_model_in_modules(model_name, module_names) and returns: any