code: def test_unmask_encrypted_extra_when_new_is_none() -> None:
      """
      Test that a None value works for ``encrypted_extra``.
      """
      from superset.db_engine_specs.gsheets import GSheetsEngineSpec
  
      old = json.dumps(
          {
              "service_account_info": {
                  "project_id": "yellow-unicorn-314419",
                  "private_key": "XXXXXXXXXX",
              },
          }
      )
      new = None
  
      assert GSheetsEngineSpec.unmask_encrypted_extra(old, new) is None
  
file_path: superset/tests/unit_tests/db_engine_specs/test_gsheets.py
imports: import json
  import pandas
  import pytest
  from pytest_mock import MockFixture
  from superset.errors import ErrorLevel, SupersetError, SupersetErrorType
  from superset.exceptions import SupersetException
  from superset.sql_parse import Table
label_desc: Use image node_id 7 for calling a global function with example usage: test_unmask_encrypted_extra_when_new_is_none() without return types