code: def test_x_label_major(Chart):
      """Test x label major option"""
      if Chart in (
          Pie,
          Treemap,
          Funnel,
          Dot,
          Gauge,
          Histogram,
          Box,
          SolidGauge,
          Pyramid,
          DateTimeLine,
          TimeLine,
          DateLine,
          TimeDeltaLine,
      ) or issubclass(Chart, (BaseMap, Dual, HorizontalGraph)):
          return
      chart = Chart()
      chart.add("test", range(12))
      chart.x_labels = map(str, range(12))
  
      q = chart.render_pyquery()
      assert len(q(".axis.x text.major")) == 0
  
      chart.x_labels_major = ["1", "5", "11", "1.0", "5.0", "11.0"]
      q = chart.render_pyquery()
      assert len(q(".axis.x text.major")) == 3
      assert len(q(".axis.x text")) == 12
  
      chart.show_minor_x_labels = False
      q = chart.render_pyquery()
      assert len(q(".axis.x text.major")) == 3
      assert len(q(".axis.x text")) == 3
  
      chart.show_minor_x_labels = True
      chart.x_labels_major = None
      chart.x_labels_major_every = 2
      q = chart.render_pyquery()
      assert len(q(".axis.x text.major")) == 6
      assert len(q(".axis.x text")) == 12
  
      chart.x_labels_major_every = None
      chart.x_labels_major_count = 4
      q = chart.render_pyquery()
      assert len(q(".axis.x text.major")) == 4
      assert len(q(".axis.x text")) == 12
  
      chart.x_labels_major_every = None
      chart.x_labels_major_count = 78
      q = chart.render_pyquery()
      assert len(q(".axis.x text.major")) == 12
      assert len(q(".axis.x text")) == 12
  
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 25 for calling a global function with example usage: test_x_label_major(Chart) without return types