code: def test_register_carto_layer():
      pdk.settings.configuration = None
      pdk.settings.default_layer_attributes = None
      pdk.settings.custom_libraries == []
      register_carto_layer()
      assert "notifyError" in pdk.settings.configuration
      assert "CartoLayer" in pdk.settings.default_layer_attributes
      assert (
          pdk.settings.custom_libraries[0]["libraryName"]
          == "CartoLayerLibrary"
      )
  
file_path: deck.gl/bindings/pydeck-carto/tests/test_layer.py
imports: import json
  import pydeck
  from carto_auth import CartoAuth
  from pydeck_carto import register_carto_layer, get_layer_credentials
  from pydeck_carto.layer import MapType, CartoConnection
label_desc: Use image node_id 1 for calling a global function with example usage: test_register_carto_layer() without return types