code: def test_basic(self) -> None:
      mapper = bmm.CategoricalPatternMapper()
      check_properties_existence(
          mapper,
          ["factors", "patterns", "start", "end", "default_value"],
      )
  
imports: from __future__ import annotations
  import pytest
  from unittest.mock import MagicMock, patch
  import pandas
  from bokeh.core.validation import check_integrity, process_validation_issues
  from bokeh.palettes import Spectral6
  from _util_models import check_properties_existence
  import bokeh.models.mappers
label_desc: Use image node_id 1 for calling the Test_CategoricalPatternMapper obj's underlying member method code with example usage: obj.test_basic() without return types