code: def test_one_hot_out_of_range():
      with pytest.raises(ValueError):
          utils.one_hot(4, 3)
  
imports: import os
  from decimal import Decimal
  from typing import Optional, Text, Union, Any
  from pathlib import Path
  import pytest
  import rasa.core.lock_store
  import rasa.utils.io
  from rasa.constants import ENV_SANIC_WORKERS
  from rasa.core import utils
  from rasa.core.lock_store import LockStore, RedisLockStore, InMemoryLockStore
  from rasa.core.policies.policy import PolicyPrediction
  from rasa.shared.core.domain import Domain
  from rasa.utils.endpoints import EndpointConfig
  from tests.conftest import write_endpoint_config_to_yaml
label_desc: Use image node_id 2 for calling a global function with example usage: test_one_hot_out_of_range() without return types