code: def test_config_behaviours():
      """Test that all different way to set config produce same results"""
      line1 = Line()
      line1.show_legend = False
      line1.fill = True
      line1.pretty_print = True
      line1.no_prefix = True
      line1.x_labels = ["a", "b", "c"]
      line1.add("_", [1, 2, 3])
      l1 = line1.render()
  
      q = line1.render_pyquery()
      assert len(q(".axis.x")) == 1
      assert len(q(".axis.y")) == 1
      assert len(q(".plot .series path")) == 1
      assert len(q(".legend")) == 0
      assert len(q(".x.axis .guides")) == 3
      assert len(q(".y.axis .guides")) == 11
      assert len(q(".dots")) == 3
      assert q(".axis.x text").map(texts) == ["a", "b", "c"]
  
      line2 = Line(
          show_legend=False,
          fill=True,
          pretty_print=True,
          no_prefix=True,
          x_labels=["a", "b", "c"],
      )
      line2.add("_", [1, 2, 3])
      l2 = line2.render()
      assert l1 == l2
  
      class LineConfig(Config):
          show_legend = False
          fill = True
          pretty_print = True
          no_prefix = True
          x_labels = ["a", "b", "c"]
  
      line3 = Line(LineConfig)
      line3.add("_", [1, 2, 3])
      l3 = line3.render()
      assert l1 == l3
  
      line4 = Line(LineConfig())
      line4.add("_", [1, 2, 3])
      l4 = line4.render()
      assert l1 == l4
  
      line_config = Config()
      line_config.show_legend = False
      line_config.fill = True
      line_config.pretty_print = True
      line_config.no_prefix = True
      line_config.x_labels = ["a", "b", "c"]
  
      line5 = Line(line_config)
      line5.add("_", [1, 2, 3])
      l5 = line5.render()
      assert l1 == l5
  
      l6 = Line(line_config)(1, 2, 3, title="_").render()
      assert l1 == l6
  
imports: from tempfile import NamedTemporaryFile
  from pygal import XY, Bar, Box, Config, DateLine, DateTimeLine, Dot, Funnel, Gauge, Histogram, HorizontalBar, HorizontalLine, HorizontalStackedBar, HorizontalStackedLine, Line, Pie, Pyramid, Radar, SolidGauge, TimeDeltaLine, TimeLine, Treemap, formatters
  from pygal.graph.dual import Dual
  from pygal.graph.horizontal import HorizontalGraph
  from pygal.graph.map import BaseMap
  from pygal.test.utils import texts
label_desc: Use image node_id 1 for calling a global function with example usage: test_config_behaviours() without return types