def METHOD_NAME(
    name: Optional[str] = None,
    data=None,
    electrode=None,
    gain=0.02,
    stimulus_description="N/A",
    resolution=-1.0,
    conversion=1.0,
    timestamps=None,
    starting_time=None,
    rate=100_000.,
    comments="no comments",
    description="no description",
    control=None,
    control_description=None,
    sweep_number=None,
    offset=0.0,
    unit="amperes",
    nwbfile: Optional[NWBFile] = None,
) -> CurrentClampStimulusSeries:
    current_clamp_stimulus_series = CurrentClampStimulusSeries(
        name=name or name_generator("CurrentClampStimulusSeries"),
        data=data if data is not None else np.ones((30,)),
        electrode=electrode or mock_IntracellularElectrode(nwbfile=nwbfile),
        gain=gain,
        stimulus_description=stimulus_description,
        resolution=resolution,
        conversion=conversion,
        timestamps=timestamps,
        starting_time=starting_time,
        rate=rate,
        comments=comments,
        description=description,
        control=control,
        control_description=control_description,
        sweep_number=sweep_number,
        offset=offset,
        unit=unit,
    )
    if nwbfile is not None:
        nwbfile.add_stimulus(current_clamp_stimulus_series)
    return current_clamp_stimulus_series