code: def compile(
      gm: torch.fx.GraphModule,
      example_inputs: List[torch.Tensor],
      options: Optional[Dict[str, Any]] = None,
  ):
      """
      Compile a given FX graph with TorchInductor.  This allows compiling
      FX graphs captured without using TorchDynamo.
  
      Args:
          gm: The FX graph to compile.
          example_inputs:  List of tensor inputs.
          options:  Optional dict of config options.  See `torch._inductor.config`.
  
      Returns:
          Callable with same behavior as gm but faster.
      """
      from .compile_fx import compile_fx
  
      return compile_fx(gm, example_inputs, config_patches=options)
  
file_path: pytorch/torch/_inductor/__init__.py
imports: from typing import Any, Dict, List, Optional
  import torch.fx
  import torch.utils._pytree
label_desc: Use image node_id 1 for calling a global function with example usage: compile(gm, example_inputs, options) and returns: compile_fx