# torch 2.15.0 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input

    Preserve node ordering using control_deps HOP with subgraph.

    This function wraps operations with control_deps that:
    1. Makes additional dependencies explicit (first argument)
    2. Creates a subgraph internally to preserve the exact original operation
    3. Preserves the original node names

    Args:
        graph: The FX graph to modify
        additional_deps_map: Mapping from dependent nodes to their dependencies
        verbose: If True, print debug information
    
=== parse google
short_description: 'Preserve node ordering using control_deps HOP with subgraph.'
long_description: |
  This function wraps operations with control_deps that:
  1. Makes additional dependencies explicit (first argument)
  2. Creates a subgraph internally to preserve the exact original operation
  3. Preserves the original node names
blank_after_short_description: True
blank_after_long_description: True
style: google
- DocstringParam
  description: 'The FX graph to modify'
  kind: param
  key: 'param'
  arg_name: 'graph'
  is_optional: False
- DocstringParam
  description: 'Mapping from dependent nodes to their dependencies'
  kind: param
  key: 'param'
  arg_name: 'additional_deps_map'
  is_optional: False
- DocstringParam
  description: 'If True, print debug information'
  kind: param
  key: 'param'
  arg_name: 'verbose'
  is_optional: False
=== detect
google
=== compose google
Preserve node ordering using control_deps HOP with subgraph.

This function wraps operations with control_deps that:
1. Makes additional dependencies explicit (first argument)
2. Creates a subgraph internally to preserve the exact original operation
3. Preserves the original node names

Args:
    graph: The FX graph to modify
    additional_deps_map: Mapping from dependent nodes to their dependencies
    verbose: If True, print debug information
