code: def add_parameter(self, name, type, default, optional, desc):
      if name in self.mapping:
          raise ComponentParameterDuplicateError(
              f"parameter {name} declare multiple times"
          )
      self.mapping[name] = ParameterDescribe(
          name, type, default, optional, desc
      )
  
imports: import typing
  from typing import Dict, TypeVar
  import pydantic
label_desc: Use image node_id 2 for calling the ComponentParameterDescribes obj's underlying member method code with example usage: obj.add_parameter(name, type, default, optional, desc) without return types