code: def _check_data_loader_result_correctness(self, result, expected):
      assert len(result) == len(expected)
  
      for res_row, exp_row in zip(result, expected):
          assert len(res_row) == len(exp_row)
          for res_field, exp_field in zip(res_row, exp_row):
              np.testing.assert_almost_equal(
                  res_field.numpy(), exp_field
              )
  
file_path: spark/python/pyspark/ml/torch/tests/test_data_loader.py
imports: import unittest
  import numpy
  from pyspark.ml.torch.distributor import TorchDistributor, _get_spark_partition_data_loader
  from pyspark.sql import SparkSession
  from pyspark.ml.linalg import Vectors
label_desc: Use image node_id 3 for calling the TorchDistributorDataLoaderUnitTests obj's underlying member method code with example usage: obj._check_data_loader_result_correctness(result, expected) without return types