code: def _component_is_valid(component):
      """
      Validates if the component is of the correct class.
      """
      return issubclass(type(component), MetaflowCardComponent)
  
imports: from .card_modules import MetaflowCardComponent
  from .card_modules.basic import ErrorComponent, SectionComponent
  from .card_modules.components import UserComponent, create_component_id, StubComponent
  from .exception import ComponentOverwriteNotSupportedException
  from metaflow.metaflow_config import RUNTIME_CARD_RENDER_INTERVAL
  import uuid
  import json
  import platform
  from collections import OrderedDict
  import time
label_desc: Use image node_id 2 for calling a global function with example usage: _component_is_valid(component) and returns: issubclass