code: def test_build_spaced_ticks(unittest):
      from dtale.dash_application.charts import build_spaced_ticks
  
      ticks = list("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef")
      output = build_spaced_ticks(ticks)
      unittest.assertEqual({"tickmode": "auto", "nticks": 17}, output)
      output = build_spaced_ticks(ticks, mode="array")
      expected = {
          "tickmode": "array",
          "tickvals": [
              0,
              2,
              4,
              6,
              8,
              10,
              12,
              14,
              16,
              18,
              20,
              22,
              24,
              26,
              28,
              30,
              31,
          ],
          "ticktext": [
              "A",
              "C",
              "E",
              "G",
              "I",
              "K",
              "M",
              "O",
              "Q",
              "S",
              "U",
              "W",
              "Y",
              "a",
              "c",
              "e",
              "f",
          ],
      }
      unittest.assertEqual(expected, output)
  
file_path: dtale/tests/dtale/test_charts.py
imports: import pandas
  import pytest
  import dtale.charts.utils
  from dtale.constants import CHART_JOINER_CHAR
label_desc: Use image node_id 7 for calling a global function with example usage: test_build_spaced_ticks(unittest) without return types