code: def test_insert_null_values() -> None:
      kind = CACHE_KIND
      dataset_a = DATASET_NAME_A
      dataset_git_revision_a = DATASET_GIT_REVISION_A
      dataset_b = DATASET_NAME_B
      dataset_c = DATASET_NAME_C
      dataset_git_revision_c = DATASET_GIT_REVISION_C
      config = None
      split = None
      content = {"some": "content"}
      http_status = HTTPStatus.OK
  
      CachedResponseDocument.objects(
          kind=kind,
          dataset=dataset_a,
          dataset_git_revision=dataset_git_revision_a,
          config=config,
          split=split,
      ).upsert_one(
          content=content,
          http_status=http_status,
      )
      assert CachedResponseDocument.objects.count() == 1
      cached_response = CachedResponseDocument.objects.get()
      assert cached_response is not None
      assert cached_response.config is None
      assert "config" not in cached_response.to_json()
      cached_response.validate()
  
      CachedResponseDocument(
          kind=kind,
          dataset=dataset_b,
          dataset_git_revision=dataset_git_revision_a,
          config=config,
          split=split,
          content=content,
          http_status=http_status,
      ).save()
      assert CachedResponseDocument.objects.count() == 2
      cached_response = CachedResponseDocument.objects(
          dataset=dataset_b
      ).get()
      assert cached_response is not None
      assert cached_response.config is None
      assert "config" not in cached_response.to_json()
  
      coll = CachedResponseDocument._get_collection()
      coll.insert_one(
          {
              "kind": kind,
              "dataset": dataset_c,
              "dataset_git_revision": dataset_git_revision_c,
              "config": None,
              "split": None,
              "content": content,
              "http_status": http_status,
          }
      )
      assert CachedResponseDocument.objects.count() == 3
      cached_response = CachedResponseDocument.objects(
          dataset=dataset_c
      ).get()
      assert cached_response is not None
      assert cached_response.config is None
      assert "config" not in cached_response.to_json()
  
imports: from collections.abc import Mapping
  from datetime import datetime
  from decimal import Decimal
  from http import HTTPStatus
  from time import process_time
  from typing import Any, Optional, TypedDict
  import pytest
  from pymongo.errors import DocumentTooLarge
  from libcommon.resources import CacheMongoResource
  from libcommon.simple_cache import CachedArtifactError, CachedResponseDocument, CacheEntryDoesNotExistError, CacheReportsPage, CacheReportsWithContentPage, CacheTotalMetricDocument, InvalidCursor, InvalidLimit, delete_dataset_responses, delete_response, fetch_names, get_best_response, get_cache_reports, get_cache_reports_with_content, get_dataset_responses_without_content_for_kind, get_datasets_with_last_updated_kind, get_outdated_split_full_names_for_step, get_response, get_response_with_details, get_response_without_content, get_responses_count_by_kind_status_and_error_code, has_any_successful_response, upsert_response
  from libcommon.utils import get_datetime
  from .utils import CACHE_KIND, CONFIG_NAME_1, CONFIG_NAME_2, CONTENT_ERROR, DATASET_GIT_REVISION_A, DATASET_GIT_REVISION_B, DATASET_GIT_REVISION_C, DATASET_NAME, DATASET_NAME_A, DATASET_NAME_B, DATASET_NAME_C, REVISION_NAME
label_desc: Use image node_id 2 for calling a global function with example usage: test_insert_null_values() without return types