docstr: Test basic reporting when invoking a single transform directly.
docstr_tok: ["Test","basic","reporting","when","invoking","a","single","transform","directly","."]
code: def test_profile_transforms(self):
      """Test basic reporting when invoking a single transform directly."""
      with WorkflowProfiler() as wp:
          self.scale(self.test_image)
  
      results = wp.get_results()
      self.assertSequenceEqual(list(results), [self.scale_call_name])
  
      prs = results[self.scale_call_name]
  
      self.assertEqual(len(prs), 1)
  
      pr = prs[0]
  
      self.assertIsInstance(pr, ProfileResult)
      self.assertEqual(pr.name, self.scale_call_name)
      self.assertEqual(pr.pid, self.pid)
      self.assertGreater(pr.time, 0)
  
      dt = datetime.datetime.fromisoformat(pr.timestamp)
  
      self.assertIsInstance(dt, datetime.datetime)
  
imports: from __future__ import annotations
  import datetime
  import os
  import unittest
  from io import StringIO
  import torch
  import monai.transforms
  from monai.data import Dataset, ThreadDataLoader
  from monai.utils import first, optional_import
  from monai.utils.enums import CommonKeys
  from monai.utils.profiling import ProfileHandler, ProfileResult, WorkflowProfiler
  from tests.utils import SkipIfNoModule
label_desc: Use image node_id 3 for calling the TestWorkflowProfiler obj's underlying member method code with example usage: obj.test_profile_transforms() without return types