code: def is_not_none_if_condition(cls, x, y, condition):
      for i in y:
          attr = getattr(x, i, None)
          if condition:
              cls.assertTrue(attr is not None)
          else:
              cls.assertTrue(attr is None)
  
label_desc: Use image node_id 1 for calling a global function with example usage: is_not_none_if_condition(cls, x, y, condition) without return types