code: def _tfr_control_flow_range_for(x):
      # TODO(fengliuai): use len(x) instead
      n = 10
      x_sum = x[0]
      for i in range(1, n):
          x_sum = math_ops.Add(x_sum, x[i])
      return x_sum
  
imports: import sys
  from tensorflow.compiler.mlir.python.mlir_wrapper import filecheck_wrapper
  from tensorflow.compiler.mlir.tfr.python import composite
  from tensorflow.compiler.mlir.tfr.python.tfr_gen import tfr_gen_from_module
  from tensorflow.compiler.mlir.tfr.resources import gen_test_ops
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import gen_array_ops
  from tensorflow.python.ops import gen_math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 12 for calling a global function with example usage: _tfr_control_flow_range_for(x) and returns: x_sum