code: def list_backends(
      exclude_tags=("debug", "experimental")
  ) -> List[str]:
      """
      Return valid strings that can be passed to:
  
          torch.compile(..., backend="name")
      """
      _lazy_import()
      exclude_tags = set(exclude_tags or ())
      return sorted(
          [
              name
              for name, backend in _BACKENDS.items()
              if not exclude_tags.intersection(backend._tags)
          ]
      )
  
file_path: pytorch/torch/_dynamo/backends/registry.py
imports: import functools
  import sys
  from typing import Callable, Dict, List, Optional, Protocol, Sequence, Tuple
  import torch
  from torch import fx
label_desc: Use image node_id 3 for calling a global function with example usage: list_backends(exclude_tags) and returns: sorted