code: def __init__(self, component_id, card_id, card_type):
      id_str = ""
      if card_id is not None:
          id_str = "id='%s'" % card_id
      msg = (
          "Card component overwrite is not supported. "
          "Component with id %s already exists in the @card(type='%s', %s). \n"
          "Instead of calling `current.card.components[ID] = MyComponent`. "
          "You can overwrite the entire component Array by calling "
          "`current.card.components = [MyComponent]`"
      ) % (component_id, card_type, id_str)
      super().__init__(
          msg=msg,
      )
  
imports: from metaflow.exception import MetaflowException
  import traceback
  import re
label_desc: Use image node_id 1 to create a new ComponentOverwriteNotSupportedException object from inherited base classes: MetaflowException with example: obj = ComponentOverwriteNotSupportedException(component_id, card_id, card_type)