code: def get_patched_ast(source, sorted_children=False):
      
      return patch_ast(ast.parse(source), source, sorted_children)
docs: Adds ``region`` and ``sorted_children`` fields to nodes
  
      Adds ``sorted_children`` field only if `sorted_children` is True.