code: def test_random_indices(batch_size: int, n: int, n_max: int):
      indices = layers_utils.random_indices(batch_size, n, n_max)
      assert np.all(tf.shape(indices).numpy() == [batch_size, n])
      assert np.max(indices.numpy()) < n_max
      assert np.max(indices.numpy()) >= 0
  
file_path: rasa/tests/utils/tensorflow/test_layers_utils.py
imports: import pytest
  import tensorflow
  import numpy
  from typing import List, Optional, Union
  import rasa.utils.tensorflow.layers_utils
label_desc: Use image node_id 1 for calling a global function with example usage: test_random_indices(batch_size, n, n_max) without return types