class_docstr: Test whether extra x and y ranges can be categorical
class_docstr_tok: ["Test","whether","extra","x","and","y","ranges","can","be","categorical"]
code: def get_range_instance():
      return FactorRange("foo", "bar")
  
imports: from __future__ import annotations
  import pytest
  from math import isnan
  from unittest import mock
  from unittest.mock import MagicMock, patch
  import xyzservices.providers
  from bokeh.core.validation import check_integrity, process_validation_issues
  from bokeh.models import CategoricalScale, CustomJS, DataRange1d, FactorRange, GlyphRenderer, Label, LinearAxis, LinearScale, LogScale, PanTool, Plot, Range1d, ResetTool, Title, WMTSTileSource, ZoomInTool, ZoomOutTool
  from bokeh.plotting import figure
  import bokeh.models.plots
label_desc: Use image node_id 1 for calling the TestCategoricalTwinAxis obj's underlying member method code with example usage: obj.get_range_instance() and returns: FactorRange