code: def _get_random(positions):
      """Get a random tensor like `positions`."""
      flat_random = random_ops.random_uniform(
          array_ops.shape(positions.flat_values),
          0,
          1,
          dtype=dtypes.float32,
      )
      return positions.with_flat_values(flat_random)
  
imports: from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import control_flow_assert
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops.ragged import ragged_array_ops
  from tensorflow.python.ops.ragged import ragged_math_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.ops.ragged import ragged_where_op
  from tensorflow_text.python.ops import item_selector_ops
label_desc: Use image node_id 2 for calling a global function with example usage: _get_random(positions) and returns: positions