code: def register_carto_layer():
      """Add CartoLayer JS bundle to pydeck's custom libraries."""
      library_name = "CartoLayerLibrary"
      custom_library = {
          "libraryName": library_name,
          "resourceUri": CARTO_LAYER_BUNDLE_URL,
      }
      default_layer_attributes = {
          "CartoLayer": {
              "client_id": pdk.types.String("pydeck-carto"),
              "on_data_error": pdk.types.Function("notifyError"),
          }
      }
      configuration = """{
          functions: {
              notifyError: () => {
                  return (e) => {
                      document.body.style.cssText = 'padding:24px;font-size:14px;font-family:monospace';
                      document.body.innerHTML = `<b>Layer Error</b>: ${e.message}`;
                  }
              }
          }
      }"""  # noqa
  
      if pdk.settings.configuration is None:
          pdk.settings.configuration = configuration
  
      if pdk.settings.default_layer_attributes is None:
          pdk.settings.default_layer_attributes = (
              default_layer_attributes
          )
      else:
          pdk.settings.default_layer_attributes = {
              **pdk.settings.default_layer_attributes,
              **default_layer_attributes,
          }
  
      if pdk.settings.custom_libraries is None:
          pdk.settings.custom_libraries = [custom_library]
      else:
          exists = any(
              [
                  x.get("libraryName") == library_name
                  for x in pdk.settings.custom_libraries
              ]
          )
          if not exists:
              pdk.settings.custom_libraries.append(custom_library)
  
imports: import pydeck
label_desc: Use image node_id 1 for calling a global function with example usage: register_carto_layer() without return types