code: def test_should_use_id_token_from_parent_credentials(self):
      parent_credentials = mock.MagicMock()
      type(parent_credentials).id_token = mock.PropertyMock(
          side_effect=["ID_TOKEN1", "ID_TOKEN2"]
      )
  
      creds = IDTokenCredentialsAdapter(credentials=parent_credentials)
      assert creds.token == "ID_TOKEN1"
  
      request_adapter = mock.MagicMock()
      creds.refresh(request_adapter)
  
      assert creds.token == "ID_TOKEN2"
  
file_path: airflow/tests/providers/google/common/utils/test_id_token_credentials.py
imports: from __future__ import annotations
  import json
  import os
  from unittest import mock
  import pytest
  from google.auth import exceptions
  from google.auth.environment_vars import CREDENTIALS
  from airflow.providers.google.common.utils.id_token_credentials import IDTokenCredentialsAdapter, get_default_id_token_credentials
label_desc: Use image node_id 1 for calling the TestIDTokenCredentialsAdapter obj's underlying member method code with example usage: obj.test_should_use_id_token_from_parent_credentials() without return types