code: def _random_center(
      mask_dim_length, image_dim_length, batch_size, seed
  ):
      if mask_dim_length >= image_dim_length:
          return tf.tile([image_dim_length // 2], [batch_size])
      half_mask_dim_length = mask_dim_length // 2
      return tf.random.uniform(
          shape=[batch_size],
          minval=half_mask_dim_length,
          maxval=image_dim_length - half_mask_dim_length,
          dtype=tf.int32,
          seed=seed,
      )
  
imports: import tensorflow
  from tensorflow_addons.utils.types import TensorLike, Number
label_desc: Use image node_id 2 for calling a global function with example usage: _random_center(mask_dim_length, image_dim_length, batch_size, seed) and returns: tf, tf