code: def test_xyzservices(tiles):
      m = folium.Map([48.0, 5.0], tiles=tiles, zoom_start=6)
  
      folium.raster_layers.TileLayer(
          tiles=xyzservices.providers.CartoDB.Positron,
      ).add_to(m)
      folium.LayerControl().add_to(m)
  
      out = m._parent.render()
      assert (
          xyzservices.providers.CartoDB.DarkMatter.build_url(
              fill_subdomain=False, scale_factor="{r}"
          )
          in out
      )
      assert (
          xyzservices.providers.CartoDB.Positron.build_url(
              fill_subdomain=False, scale_factor="{r}"
          )
          in out
      )
  
file_path: folium/tests/test_raster_layers.py
imports: import pytest
  import xyzservices
  from jinja2 import Template
  import folium
  from folium.utilities import normalize
label_desc: Use image node_id 6 for calling a global function with example usage: test_xyzservices(tiles) without return types