code: def testLogicalOperators(self):
      # pylint: disable=invalid-unary-operand-type
      a = ragged_factory_ops.constant([[True, True], [False]])
      b = ragged_factory_ops.constant([[True, False], [False]])
      self.assertAllEqual((~a), [[False, False], [True]])
  
      self.assertAllEqual((a & b), [[True, False], [False]])
      self.assertAllEqual((a & True), [[True, True], [False]])
      self.assertAllEqual((True & b), [[True, False], [False]])
  
      self.assertAllEqual((a | b), [[True, True], [False]])
      self.assertAllEqual((a | False), [[True, True], [False]])
      self.assertAllEqual((False | b), [[True, False], [False]])
  
      self.assertAllEqual((a ^ b), [[False, True], [False]])
      self.assertAllEqual((a ^ True), [[False, False], [True]])
      self.assertAllEqual((True ^ b), [[False, True], [True]])
  
file_path: tensorflow/tensorflow/python/ops/ragged/ragged_operators_test.py
imports: from tensorflow.python import tf2
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 4 for calling the RaggedElementwiseOpsTest obj's underlying member method code with example usage: obj.testLogicalOperators() without return types