code: def test_arg_and_kwarg(self) -> None:
      with pytest.raises(TypeError) as exc:
          self._plot.select("foo", type=PanTool)
      assert (
          "select accepts EITHER a positional argument, OR keyword arguments (not both)."
          == str(exc.value)
      )
  
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 10 for calling the TestPlotSelect obj's underlying member method code with example usage: obj.test_arg_and_kwarg() without return types