code: def test_view_markers():
      coords = np.arange(12).reshape((4, 3))
      colors = ["r", "g", "black", "white"]
      labels = [
          "red marker",
          "green marker",
          "black marker",
          "white marker",
      ]
      html = html_connectome.view_markers(coords, colors)
      check_html(html, False, "connectome-plot")
      html = html_connectome.view_markers(coords)
      check_html(html, False, "connectome-plot")
      html = html_connectome.view_markers(coords, marker_size=15)
      check_html(html, False, "connectome-plot")
      html = html_connectome.view_markers(
          coords, marker_size=np.arange(len(coords))
      )
      check_html(html, False, "connectome-plot")
      html = html_connectome.view_markers(
          coords, marker_size=list(range(len(coords)))
      )
      check_html(html, False, "connectome-plot")
      html = html_connectome.view_markers(
          coords,
          marker_size=5.0,
          marker_color=colors,
          marker_labels=labels,
      )
      labels_dict = {"marker_labels": labels}
      assert json.dumps(labels_dict)[1:-1] in html.html
  
file_path: nilearn/nilearn/plotting/tests/test_html_connectome.py
imports: import json
  import numpy
  import pytest
  from nilearn.plotting import html_connectome
  from nilearn.plotting.js_plotting_utils import decode
  from .test_js_plotting_utils import check_html
label_desc: Use image node_id 6 for calling a global function with example usage: test_view_markers() without return types