docstr: This method is deprecated. Please switch to GetRootAs.
docstr_tok: ["This","method","is","deprecated",".","Please","switch","to","GetRootAs","."]
code: def GetRootAsNestedUnionTest(cls, buf, offset=0):
      """This method is deprecated. Please switch to GetRootAs."""
      return cls.GetRootAs(buf, offset)
  
imports: import flatbuffers
  from flatbuffers.compat import import_numpy
  from typing import Any
  from flatbuffers.table import Table
  from typing import Optional
  import MyGame.Example.NestedUnion.Any
  import MyGame.Example.NestedUnion.TestSimpleTableWithEnum
  import MyGame.Example.NestedUnion.Vec3
label_desc: Use image node_id 2 for calling the NestedUnionTest obj's underlying member method code with example usage: obj.GetRootAsNestedUnionTest(cls, buf, offset) and returns: cls