code: def test_compress_target(self):
      from detectron2.data.transforms import RandomCrop
  
      name = _convert_target_to_string(RandomCrop)
      # name shouldn't contain 'augmentation_impl'
      self.assertEqual(name, "detectron2.data.transforms.RandomCrop")
      self.assertIs(RandomCrop, locate(name))
  
file_path: detectron2/tests/test_registry.py
imports: import unittest
  import torch
  from detectron2.modeling.meta_arch import GeneralizedRCNN
  from detectron2.utils.registry import _convert_target_to_string, locate
label_desc: Use image node_id 7 for calling the TestLocate obj's underlying member method code with example usage: obj.test_compress_target() without return types