code: def register_url(asset_url: str):
      if asset_url:
          registry = asset_url + "/registry.json"
          try:
              contents = urllib.request.urlopen(registry).read()
              contents = json.loads(contents)
          except Exception as e:
              raise e
          files = {}
          pinyin_names = set()
          for name, pinyin in contents["PINYIN_MAP"].items():
              file_name = contents["FILE_MAP"][pinyin]
              files[name] = [file_name, "js"]
              pinyin_names.add(pinyin)
  
          for key, file_name in contents["FILE_MAP"].items():
              if key not in pinyin_names:
                  # English names
                  files[key] = [file_name, "js"]
  
          js_folder_name = contents["JS_FOLDER"]
          if js_folder_name == "/":
              js_file_prefix = f"{asset_url}/"
          else:
              js_file_prefix = f"{asset_url}/{js_folder_name}/"
          EXTRA[js_file_prefix] = files
  
file_path: pyecharts/pyecharts/datasets/__init__.py
imports: import difflib
  import os
  import typing
  import urllib.request
  import simplejson
label_desc: Use image node_id 1 for calling a global function with example usage: register_url(asset_url) without return types