code: def test_reject_incorrect_temperature():
      with pytest.raises(
          ValueError, match=r"softmax temperature.*zero"
      ):
          Softmax_v2(normalize_outputs=False, temperature=0.0)
  
      model = Softmax_v2(normalize_outputs=False)
      model.attrs["softmax_temperature"] = 0.0
      model.initialize(inputs, outputs)
      with pytest.raises(
          ValueError, match=r"softmax temperature.*zero"
      ):
          model(inputs, is_train=False)
  
file_path: thinc/thinc/tests/layers/test_softmax.py
imports: from typing import Tuple, cast
  import numpy
  import pytest
  from numpy.testing import assert_allclose
  from thinc.api import Model, NumpyOps, Softmax_v2
  from thinc.types import Floats2d, Ints1d
  from thinc.util import has_torch, torch2xp, xp2torch
label_desc: Use image node_id 4 for calling a global function with example usage: test_reject_incorrect_temperature() without return types