code: def test_random_indices_raises_invalid_argument_error():
      with pytest.raises(tf.errors.InvalidArgumentError):
          layers_utils.random_indices(2, 2, 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 2 for calling a global function with example usage: test_random_indices_raises_invalid_argument_error() without return types