code: def test_hsm_run_once(self):
      workspace.GlobalInit(["caffe2"])
      workspace.FeedBlob(
          "data", np.random.randn(1000, 100).astype(np.float32)
      )
      workspace.FeedBlob(
          "weights", np.random.randn(1000, 100).astype(np.float32)
      )
      workspace.FeedBlob(
          "bias", np.random.randn(1000).astype(np.float32)
      )
      workspace.FeedBlob(
          "labels", np.random.rand(1000).astype(np.int32) * 9
      )
      op = core.CreateOperator(
          "HSoftmax",
          ["data", "weights", "bias", "labels"],
          ["output", "intermediate_output"],
          "HSoftmax",
          arg=[arg],
      )
      self.assertTrue(workspace.RunOperatorOnce(op))
  
file_path: pytorch/caffe2/python/operator_test/hsm_test.py
imports: from hypothesis import given, settings
  import numpy
  import unittest
  from caffe2.proto import caffe2_pb2, hsm_pb2
  from caffe2.python import workspace, core, gradient_checker
  import caffe2.python.hypothesis_test_util
  import caffe2.python.hsm_util
label_desc: Use image node_id 2 for calling the TestHsm obj's underlying member method code with example usage: obj.test_hsm_run_once() without return types