parameters: (node)
return_statement: return node
docstring: Find the top level namespace.
docstring_summary: Find the top level namespace.
docstring_tokens: Find the top level namespace .
function: def find_root(node):
      """Find the top level namespace."""
      # Scamper up to the top level namespace
      while node.type != syms.file_input:
          node = node.parent
          if not node:
              raise ValueError("root found before file_input node was found.")
      return node
function_tokens: def find_root ( node ) : # Scamper up to the top level namespace while node . type != syms . file_input : node = node . parent if not node : raise ValueError ( "root found before file_input node was found." ) return node