def METHOD_NAME(
    self,
    nwbfile: NWBFile,
    metadata: Optional[dict] = None,
    tag: str = "trials",
    column_name_mapping: Dict[str, str] = None,
    column_descriptions: Dict[str, str] = None,
) -> NWBFile:
    """
    Run the NWB conversion for the instantiated data interface.
    Parameters
    ----------
    nwbfile : NWBFile, optional
        An in-memory NWBFile object to write to the location.
    metadata : dict, optional
        Metadata dictionary with information used to create the NWBFile when one does not exist or overwrite=True.
    tag : str, default: "trials"
    column_name_mapping: dict, optional
        If passed, rename subset of columns from key to value.
    column_descriptions: dict, optional
        Keys are the names of the columns (after renaming) and values are the descriptions. If not passed,
        the names of the columns are used as descriptions.
    """
    metadata = metadata or self.get_metadata()
    self.time_intervals = convert_df_to_time_intervals(
        self.dataframe,
        column_name_mapping=column_name_mapping,
        column_descriptions=column_descriptions,
        **metadata["TimeIntervals"][tag],
    )
    nwbfile.add_time_intervals(self.time_intervals)
    return nwbfile