code: def _parse_module(tree: ast.Module, keep_private=False) -> ast.Module:
      transformer = SourceTransformer(
          type_mapping, keep_private=keep_private
      )
      transformer.visit(tree)
  
      for obj in transformer.registered_imports:
          import_node = ast.Import(
              names=[ast.alias(name=obj, asname=None)]
          )
          tree.body.insert(0, import_node)
  
      # Add target backend import, add type hints classes imports
      ast.fix_missing_locations(tree)
      return tree
  
imports: import astunparse
  import ast
  import json
  import sys
  import subprocess
  import os
  import logging
  from shared import BackendNativeObject
label_desc: Use image node_id 1 for calling a global function with example usage: _parse_module(tree, keep_private) and returns: tree