code: def export_hard_shrink() -> None:
      node = onnx.helper.make_node(
          "Shrink",
          inputs=["x"],
          outputs=["y"],
          lambd=1.5,
      )
      X = np.arange(-2.0, 2.1, dtype=np.float32)
      Y = np.array([-2, 0, 0, 0, 2], dtype=np.float32)
      expect(node, inputs=[X], outputs=[Y], name="test_shrink_hard")
  
file_path: onnx/onnx/backend/test/case/node/shrink.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 1 for calling the Shrink obj's underlying member method code with example usage: obj.export_hard_shrink() without return types