code: def test1D(self):
      # Test against NumPy implementation (which is 1D only).
      np.random.seed(1)
      for side in ["left", "right"]:
          for dtype in [np.float32, np.int32]:
              values = np.random.uniform(
                  low=-1000, high=1000, size=(10,)
              ).astype(dtype)
              unsorted = np.random.uniform(
                  low=-1000, high=1000, size=(20,)
              ).astype(dtype)
  
              sorted_sequence = np.sort(unsorted)
              np_ans = np.searchsorted(
                  sorted_sequence, values, side=side
              )
  
              with self.session() as session:
                  with self.test_scope():
                      tf_ans = array_ops.searchsorted(
                          sorted_sequence, values, side=side
                      )
                  tf_out = session.run(tf_ans)
                  self.assertAllEqual(np_ans, tf_out)
  
file_path: tensorflow/tensorflow/compiler/tests/searchsorted_op_test.py
imports: import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the SearchSorteddOpTest obj's underlying member method code with example usage: obj.test1D() without return types