code: def get_card_class(card_type):
      from metaflow.plugins import CARDS
  
      filtered_cards = [
          card for card in CARDS if card.type == card_type
      ]
      if len(filtered_cards) == 0:
          return None
      return filtered_cards[0]
  
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 1 for calling a global function with example usage: get_card_class(card_type) and returns: filtered_cards, None