@staticmethod
    def get_dataset_key(dataset):
        """Return the dataset key for use with the new_bands dictionary.

        This is a tuple (satellite_tag, sensor_name, processing_level) except
        that for derived datasets (currently PQA and FC) the satellite_tag is
        replaced with 'DERIVED' and the processing_level is used as the
        sensor_name. So the tuple looks like:
        ('DERIVED', processing_level, processing_level).
        """

        derived_levels = {'PQA', 'FC'}

        satellite = dataset.get_satellite_tag()
        sensor = dataset.get_sensor_name()
        level = dataset.get_processing_level()

        if derived_levels in level:
            satellite = 'DERIVED'
            sensor = level

        return (satellite, sensor, level)
dataset/ETHPy150Open GeoscienceAustralia/agdc/src/abstract_ingester/collection.py/Collection.get_dataset_key/swapped operands of `in`