def METHOD_NAME(self, cassette_dict: dict) -> str:
    compressed_data = _compress_in_place(
        cassette_dict, self.saved_responses, self.compressible_strings
    )
    return yaml.dump(compressed_data, sort_keys=False)