def METHOD_NAME(self, compname=None, location=None, angle=0, use_instance_id_netlist=False):
    """Create a diode.
    Parameters
    ----------
    compname : str, optional
        Name of the diode. The default is ``None``.
    location : list of float, optional
        Position on the X axis and Y axis. The default is ``None``.
    angle : float, optional
        Angle of rotation in degrees. The default is ``0``.
    use_instance_id_netlist : bool, optional
        Whether to use the instance ID in the net list. The default is ``False``.
    Returns
    -------
    :class:`pyaedt.modeler.cad.object3dcircuit.CircuitComponent`
        Circuit Component Object.
    References
    ----------
    >>> oEditor.CreateComponent
    """
    if location == None:
        location = []
    id = self.create_component(
        compname,
        component_library="Passive Elements",
        component_name="DIODE",
        location=location,
        angle=angle,
        use_instance_id_netlist=use_instance_id_netlist,
    )
    return id