code: def sanity_check(cls, architecture):
      if architecture is None:
          cls.help()
          return False
  
      elif not architecture in cls.architecture_map:
          cls.help()
          raise ValueError(
              "Unknown pretrained model name [{}].".format(architecture)
          )
  
      else:
          return True
  
file_path: MMdnn/mmdnn/conversion/examples/extractor.py
imports: from __future__ import absolute_import
label_desc: Use image node_id 3 for calling the base_extractor obj's underlying member method code with example usage: obj.sanity_check(cls, architecture) and returns: False, True