code: def test_resize_like(self, ndims, gc, dc):
      X = np.zeros((ndims * 2,))
      Y = np.zeros((ndims, 2))
  
      op = core.CreateOperator(
          "ResizeLike",
          ["X", "Y"],
          ["Z"],
      )
  
      def resize_like(X, Y):
          return [X.reshape(Y.shape)]
  
      self.assertDeviceChecks(dc, op, [X, Y], [0])
      self.assertReferenceChecks(
          gc, op, [X, Y], resize_like, ensure_outputs_are_inferred=True
      )
  
imports: from caffe2.python import core, workspace
  from hypothesis import assume, given, settings
  from caffe2.proto import caffe2_pb2
  import caffe2.python.hypothesis_test_util
  import caffe2.python.serialized_test.serialized_test_util
  import hypothesis.strategies
  import numpy
  import random
label_desc: Use image node_id 2 for calling the TestUtilityOps obj's underlying member method code with example usage: obj.test_resize_like(ndims, gc, dc) and returns: list