code: def component_id(self, value):
      if not isinstance(value, str):
          raise TypeError("Component ID must be a string")
      self._component_id = value
  
file_path: metaflow/metaflow/plugins/cards/card_modules/card.py
imports: from typing import TYPE_CHECKING
label_desc: Use image node_id 2 for calling the MetaflowCardComponent obj's underlying member method code with example usage: obj.component_id(value) without return types