code: def test_from_string(self, dtype_str, expected_np):
      expected_pt = get_equivalent_dtype(expected_np, torch.Tensor)
      # numpy
      dtype = get_numpy_dtype_from_string(dtype_str)
      self.assertEqual(dtype, expected_np)
      # torch
      dtype = get_torch_dtype_from_string(dtype_str)
      self.assertEqual(dtype, expected_pt)
  
file_path: MONAI/tests/test_get_equivalent_dtype.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.utils.type_conversion import get_equivalent_dtype, get_numpy_dtype_from_string, get_torch_dtype_from_string
  from tests.utils import TEST_NDARRAYS
label_desc: Use image node_id 3 for calling the TestGetEquivalentDtype obj's underlying member method code with example usage: obj.test_from_string(dtype_str, expected_np) without return types