code: def test_searchsorted_nan(self, dtype):
      # The base class casts to object dtype, for which searchsorted returns
      #  0 from the left and 10 from the right.
      arr = pd.array(range(10), dtype=dtype)
  
      assert arr.searchsorted(np.nan, side="left") == 10
      assert arr.searchsorted(np.nan, side="right") == 10
  
file_path: pandas/pandas/tests/arrays/masked_shared.py
imports: import numpy
  import pytest
  import pandas
  import pandas._testing
  from pandas.tests.extension.base import BaseOpsUtil
label_desc: Use image node_id 1 for calling the NumericOps obj's underlying member method code with example usage: obj.test_searchsorted_nan(dtype) without return types