code: def test_import_from(self):
      def test_fn():
          from x import (
              a,
          )  # pylint:disable=g-import-not-at-top,unused-variable # noqa: F401
          from y import (
              z as b,
          )  # pylint:disable=g-import-not-at-top,unused-variable # noqa: F401
  
      node, _ = self._parse_and_analyze(test_fn)
      scope = anno.getanno(node.body[0], anno.Static.SCOPE)
      self.assertScopeIs(scope, (), ("a",))
      scope = anno.getanno(node.body[1], anno.Static.SCOPE)
      self.assertScopeIs(scope, (), ("b",))
  
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 ActivityAnalyzerTest obj's underlying member method code with example usage: obj.test_import_from() without return types