code: def check_module_exists(self, module, cls):
      global _MODULE_EXISTS
      _MODULE_EXISTS = 0
  
      def _traverse(m):
          if isinstance(m, cls):
              global _MODULE_EXISTS
              _MODULE_EXISTS += 1
  
      module.apply(_traverse)
      assert _MODULE_EXISTS > 0
  
imports: import pytest
  import torch
  from nemo.collections.asr.parts.submodules import jasper
label_desc: Use image node_id 2 for calling the TestJasperBlock obj's underlying member method code with example usage: obj.check_module_exists(module, cls) without return types