code: def check_target(
      self, wrapper: ModuleWrapper, target_name: str
  ) -> bool:
      module_name = wrapper.name
      if module_name not in self._target_spaces:
          return False
      ts = self._target_spaces[module_name]
      if target_name not in ts:
          return False
  
      return True
  
imports: from __future__ import annotations
  from collections import defaultdict
  from copy import deepcopy
  import logging
  from typing import Any, Dict, List, Literal, Callable
  import torch
  from torch.utils._pytree import tree_map
  from .config import trans_legacy_config_list, default_config_schema
  from .target_space import TargetSpace, TargetType, DistillationTargetSpace, PruningTargetSpace, QuantizationTargetSpace
  from .wrapper import ModuleWrapper, register_wrappers
  from ..utils import Evaluator, Scaling, _EVALUATOR_DOCSTRING
label_desc: Use image node_id 3 for calling the Quantizer obj's underlying member method code with example usage: obj.check_target(wrapper, target_name) and returns: True, False, False