code: def is_class_changed(cls):
      """Check if a class' parent module has changed compared to the main branch.
  
      Parameters
      ----------
      cls : class
          class to get module string from, e.g., NaiveForecaster
  
      Returns
      -------
      bool : True if changed, False otherwise
      """
      module_str = get_module_from_class(cls)
      return is_module_changed(module_str)
  
imports: import importlib.util
  import inspect
  import subprocess
label_desc: Use image node_id 4 for calling a global function with example usage: is_class_changed(cls) and returns: is_module_changed