code: def test_sanitize_should_remove_all_fields_in_a_list_value(self):
      body = {
          "fields": [
              {"kind": "compute#instanceTemplate", "name": "instance"},
              {
                  "kind": "compute#instanceTemplate1",
                  "name": "instance1",
              },
              {
                  "kind": "compute#instanceTemplate2",
                  "name": "instance2",
              },
          ]
      }
      fields_to_sanitize = ["fields.kind"]
  
      sanitizer = GcpBodyFieldSanitizer(fields_to_sanitize)
      sanitizer.sanitize(body)
  
      assert {
          "fields": [
              {"name": "instance"},
              {"name": "instance1"},
              {"name": "instance2"},
          ]
      } == body
  
file_path: airflow/tests/providers/google/cloud/utils/test_field_sanitizer.py
imports: from __future__ import annotations
  from copy import deepcopy
  import pytest
  from airflow.providers.google.cloud.utils.field_sanitizer import GcpBodyFieldSanitizer
label_desc: Use image node_id 8 for calling the TestGcpBodyFieldSanitizer obj's underlying member method code with example usage: obj.test_sanitize_should_remove_all_fields_in_a_list_value() without return types