code: def has_test(unit_test_class, test_name):
      return hasattr(unit_test_class, test_name)
  
imports: from collections import namedtuple
  import unittest
  import os
  import warnings
  import shutil
  import torch
  import torch.utils.cpp_extension
  import torch.testing._internal.common_nn
  from torch.testing._internal.common_cuda import TEST_CUDA
label_desc: Use image node_id 7 for calling a global function with example usage: has_test(unit_test_class, test_name) and returns: hasattr