code: def testShiftsWithPositiveLHS(self):
      dtype_list = [
          np.int8,
          np.int16,
          np.int32,
          np.int64,
          np.uint8,
          np.uint16,
          np.uint32,
          np.uint64,
      ]
  
      with self.session() as sess:
          for dtype in dtype_list:
              lhs = np.array([0, 5, 3, 14], dtype=dtype)
              rhs = np.array([5, 0, 7, 3], dtype=dtype)
              left_shift_result, right_shift_result = sess.run(
                  [
                      bitwise_ops.left_shift(lhs, rhs),
                      bitwise_ops.right_shift(lhs, rhs),
                  ]
              )
              self.assertAllEqual(
                  left_shift_result, np.left_shift(lhs, rhs)
              )
              self.assertAllEqual(
                  right_shift_result, np.right_shift(lhs, rhs)
              )
  
file_path: tensorflow-upstream/tensorflow/python/ops/bitwise_ops_test.py
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import bitwise_ops
  from tensorflow.python.ops import gen_bitwise_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 6 for calling the BitwiseOpTest obj's underlying member method code with example usage: obj.testShiftsWithPositiveLHS() without return types