code: def test_segment_diffs_no_segment_exclusive(self):
      x = tf.constant([11, 13, 17, 19, 23])
      dx1 = self.evaluate(
          segment_ops.segment_diff(
              x, segment_ids=None, order=1, exclusive=True
          )
      )
      np.testing.assert_array_equal(dx1, [2, 4, 2, 4])
      dx2 = self.evaluate(
          segment_ops.segment_diff(
              x, segment_ids=None, order=2, exclusive=True
          )
      )
      np.testing.assert_array_equal(dx2, [6, 6, 6])
  
file_path: tf-quant-finance/tf_quant_finance/math/segment_ops_test.py
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow.python.framework import test_util
  from tf_quant_finance.math import segment_ops
label_desc: Use image node_id 1 for calling the SegmentOpsTest obj's underlying member method code with example usage: obj.test_segment_diffs_no_segment_exclusive() without return types