code: def test_register_url(fake):
      current_path = os.path.dirname(__file__)
      fake_registry = os.path.join(
          current_path, "fixtures", "registry.json"
      )
      file_name = [
          "shape-with-internal-borders/an1_hui1_an1_qing4",
          "js",
      ]
      with open(fake_registry, encoding="utf8") as f:
          fake.return_value = f
          register_url("http://register.url/is/used")
          # set maxDiff
          assert_equal.__self__.maxDiff = None
          assert_equal(
              EXTRA["http://register.url/is/used/js/"],
              {
                  "安庆": file_name,
                  "English Name": file_name,
              },
          )
  
      fake_registry_1 = os.path.join(
          current_path, "fixtures", "registry_1.json"
      )
      with open(fake_registry_1, encoding="utf8") as f:
          fake.return_value = f
          register_url("http://register.url/is/used")
          assert_equal(
              EXTRA["http://register.url/is/used/"],
              {
                  "安庆": file_name,
                  "English Name": file_name,
              },
          )
  
file_path: pyecharts/test/test_datasets.py
imports: import os
  import urllib.error
  from unittest.mock import patch
  from nose.tools import assert_equal, assert_in, raises
  from pyecharts.datasets import EXTRA, FuzzyDict, register_url, register_files, register_coords
label_desc: Use image node_id 1 for calling a global function with example usage: test_register_url(fake) without return types