code: def test_plot_epochs_scale_bar(epochs, browser_backend):
      """Test scale bar for epochs."""
      fig = epochs.plot()
      texts = fig._get_scale_bar_texts()
      # mag & grad in this instance
      if browser_backend.name == "pyqtgraph":
          assert len(texts) == 2
          wants = ("800.0 fT/cm", "2000.0 fT")
      elif browser_backend.name == "matplotlib":
          assert len(texts) == 4
          wants = ("800.0 fT/cm", "0.55 s", "2000.0 fT", "0.55 s")
      assert texts == wants
  
imports: import platform
  import matplotlib.pyplot
  import numpy
  import pytest
  from mne import Epochs, EpochsArray, create_info
  from mne.datasets import testing
  from mne.event import make_fixed_length_events
  from mne.viz import plot_drop_log
label_desc: Use image node_id 5 for calling a global function with example usage: test_plot_epochs_scale_bar(epochs, browser_backend) without return types