code: def test_torch_standard_scaler(self):
      torch.manual_seed(56987)
      embeddings = torch.randn(1024, 512)
      scaled = c_f.torch_standard_scaler(embeddings)
      true_scaled = StandardScaler().fit_transform(
          embeddings.cpu().numpy()
      )
      true_scaled = torch.from_numpy(true_scaled)
      self.assertTrue(
          torch.all(torch.isclose(scaled, true_scaled, rtol=1e-2))
      )
  
file_path: pytorch-metric-learning/tests/utils/test_common_functions.py
imports: import logging
  import unittest
  import numpy
  import torch
  from sklearn.preprocessing import StandardScaler
  from pytorch_metric_learning.losses import TripletMarginLoss
  from pytorch_metric_learning.utils import common_functions
  from ..None import WITH_COLLECT_STATS
label_desc: Use image node_id 1 for calling the TestCommonFunctions obj's underlying member method code with example usage: obj.test_torch_standard_scaler() without return types