def add_labels(self, labels: dict[str, str]) -> AbstractProgram:
        """Adds new labels to a previously created quantum program.

        Params:
            labels: New labels to add to the existing program labels.

        Returns:
             This AbstractProgram.
        """
        for key in labels:
            self._labels[key] = labels[key]
        return self
Adds new labels to a previously created quantum program.

        Params:
            labels: New labels to add to the existing program labels.

        Returns:
             This AbstractProgram.
        
cirq-google/cirq_google/engine/abstract_local_program.py