code: def is_compiled_module(module):
      """Check whether the module was compiled with torch.compile()"""
      if is_torch_version("<", "2.0.0") or not hasattr(
          torch, "_dynamo"
      ):
          return False
      return isinstance(
          module, torch._dynamo.eval_frame.OptimizedModule
      )
  
imports: from typing import List, Optional, Tuple, Union
  from .None import logging
  from .import_utils import is_torch_available, is_torch_version
label_desc: Use image node_id 2 for calling a global function with example usage: is_compiled_module(module) and returns: isinstance, False