code: def _test_resize_nearest_op(self, device):
      data = np.random.rand(1, 2, 3, 4).astype(np.float32)
  
      def _resize_nearest_ref(X):
          ref_op = core.CreateOperator(
              "ResizeNearest",
              ["X"],
              ["Y"],
              width_scale=2.0,
              height_scale=1.5,
              order="NCHW",
          )
          workspace.FeedBlob("X", X)
          workspace.RunOperatorOnce(ref_op)
          return workspace.FetchBlob("Y")
  
      expected_output = _resize_nearest_ref(data)
      actual_output = torch.ops._caffe2.ResizeNearest(
          torch.tensor(data).to(device),
          order="NCHW",
          width_scale=2.0,
          height_scale=1.5,
      )
  
      assert_allclose(expected_output, actual_output.cpu())
  
imports: import struct
  import unittest
  import caffe2.python.hypothesis_test_util
  import hypothesis.strategies
  import numpy
  import torch
  from caffe2.python import core, workspace
  from hypothesis import given, settings
  from scipy.stats import norm
  from ._utils import assert_allclose
label_desc: Use image node_id 27 for calling the TorchIntegration obj's underlying member method code with example usage: obj._test_resize_nearest_op(device) and returns: workspace