code: def assertSymbolSetsAre(self, expected, actual, name):
      expected = set(expected)
      actual = set(str(s) for s in actual)
      self.assertSetEqual(
          expected,
          actual,
          "for symbol set: %s\n"
          "  Expected: %s\n"
          "  Got:      %s\n"
          "  Missing:  %s\n"
          "  Extra:    %s\n"
          % (
              name.upper(),
              expected,
              actual,
              expected - actual,
              actual - expected,
          ),
      )
  
imports: import unittest
  import gast
  from nvidia.dali._autograph.pyct import anno
  from nvidia.dali._autograph.pyct import naming
  from nvidia.dali._autograph.pyct import parser
  from nvidia.dali._autograph.pyct import qual_names
  from nvidia.dali._autograph.pyct import transformer
  from nvidia.dali._autograph.pyct.static_analysis import activity
  from nvidia.dali._autograph.pyct.static_analysis import annos
label_desc: Use image node_id 2 for calling the ActivityAnalyzerTestBase obj's underlying member method code with example usage: obj.assertSymbolSetsAre(expected, actual, name) without return types