def set_labels(self, labels: dict[str, str]) -> AbstractProgram:
        """Sets (overwriting) the labels for a previously created quantum program.

        Params:
            labels: The entire set of new program labels.

        Returns:
             This AbstractProgram.
        """
Sets (overwriting) the labels for a previously created quantum program.

        Params:
            labels: The entire set of new program labels.

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