code: def test_layer_control_render():
      m = Map(tiles=None)
      layer1 = TileLayer().add_to(m)
      layer2 = Marker([0, 0]).add_to(m)
      layer3 = GeoJson({}).add_to(m)
      layer1.control = True
      layer2.control = False
      layer3.control = True
      layer1.layer_name = "Layer1"
      layer2.layer_name = "Layer2"
      layer3.layer_name = "Layer3"
      layer1.get_name = lambda: "layer1"
      layer2.get_name = lambda: "layer2"
      layer3.get_name = lambda: "layer3"
  
      layer_control = LayerControl().add_to(m)
      layer_control.render()
  
      assert layer_control.base_layers == {"Layer1": "layer1"}
      assert layer_control.overlays == {"Layer3": "layer3"}
  
imports: import warnings
  import numpy
  import pytest
  from folium import GeoJson, Map, TileLayer
  from folium.map import CustomPane, Icon, LayerControl, Marker, Popup
  from folium.utilities import normalize
label_desc: Use image node_id 3 for calling a global function with example usage: test_layer_control_render() without return types