code: def is_implemented_in_notebook(cls):
      """Check if the remote class is implemented in the environments like notebook(e.g., ipython, notebook).
  
      Args:
          cls: class
      """
      assert inspect.isclass(cls)
  
      if hasattr(cls, "__module__"):
          cls_module = sys.modules.get(cls.__module__)
          if getattr(cls_module, "__file__", None):
              return False
      return True
  
file_path: PARL/parl/remote/remote_class_serialization.py
imports: import os
  import cloudpickle
  import sys
  import inspect
  from parl.utils import isnotebook, format_uniform_path
label_desc: Use image node_id 2 for calling a global function with example usage: is_implemented_in_notebook(cls) and returns: True, False