code: def export_with_negative_indices() -> None:
      axisValue = 1
      on_value = 3
      off_value = 1
      output_type = np.float32
      node = onnx.helper.make_node(
          "OneHot",
          inputs=["indices", "depth", "values"],
          outputs=["y"],
          axis=axisValue,
      )
      indices = np.array([0, -7, -8], dtype=np.int64)
  
      # print(y)
      # [[3. 1. 1. 1. 1. 1. 1. 1. 1. 1.]
      #  [1. 1. 1. 3. 1. 1. 1. 1. 1. 1.]
      #  [1. 1. 3. 1. 1. 1. 1. 1. 1. 1.]]
  
      depth = np.float32(10)
      values = np.array([off_value, on_value], dtype=output_type)
      y = one_hot(indices, depth, axis=axisValue, dtype=output_type)
      y = y * (on_value - off_value) + off_value
      expect(
          node,
          inputs=[indices, depth, values],
          outputs=[y],
          name="test_onehot_negative_indices",
      )
  
file_path: onnx/onnx/backend/test/case/node/onehot.py
imports: import numpy
  import onnx
  from onnx.backend.test.case.base import Base
  from onnx.backend.test.case.node import expect
label_desc: Use image node_id 3 for calling the OneHot obj's underlying member method code with example usage: obj.export_with_negative_indices() without return types