def METHOD_NAME(
        self,
        task_metadata: TaskMetadata,
        inlets: List,
        outlets: List,
):
    from openlineage.airflow.extractors.converters import convert_to_dataset
    self.log.debug("Manually extracting lineage metadata from inlets and outlets")
    for i in inlets:
        d = convert_to_dataset(i)
        if d:
            task_metadata.inputs.append(d)
    for o in outlets:
        d = convert_to_dataset(o)
        if d:
            task_metadata.outputs.append(d)