code: def test_comparison(self):
      def f(a, b, c, d):
          return a < b == c > d
  
      tr = self.transform(f, logical_expressions)
  
      # Note: having just the first constant a tensor tests that the
      # operations execute in the correct order. If anything other than
      # a < b executed first, the result would be a Python scalar and not a
      # Tensor. This is valid as long as the dispatch is automatic based on
      # type.
      self.assertTrue(tr(1, 2, 2, 1))
      self.assertFalse(tr(1, 2, 2, 3))
  
file_path: DALI/dali/test/python/autograph/converters/test_logical_expressions.py
imports: from nvidia.dali._autograph.converters import logical_expressions
  from nvidia.dali._autograph.core import converter_testing
label_desc: Use image node_id 3 for calling the LogicalExpressionTest obj's underlying member method code with example usage: obj.test_comparison() and returns: unknown