code: def traffic_layer(auto_refresh=True):
      """
      Traffic layer.
  
      Adds information about the current state of traffic
      to the map. This layer only works at sufficiently high
      zoom levels, and for regions for which Google Maps
      has traffic information.
  
      :param auto_refresh:
          Whether the traffic layer refreshes with updated
          information automatically. This is true by default.
      :type auto_refresh: bool, optional
  
      :returns:
          A :class:`gmaps.Traffic` widget.
  
      :Examples:
  
      ::
  
          # map centered on London
          >>> fig = gmaps.figure(center=(51.5, -0.2), zoom_level=11)
          >>> fig.add_layer(gmaps.traffic_layer())
          >>> fig
      """
      return Traffic(auto_refresh=auto_refresh)
  
imports: import ipywidgets
  from traitlets import Unicode, Bool
  from .maps import GMapsWidgetMixin
label_desc: Use image node_id 1 for calling a global function with example usage: traffic_layer(auto_refresh) and returns: Traffic