class_docstr: A global variable that redirects via thread local variable
  
  This allows us to swap in different op implementations in codegen.
class_docstr_tok: ["A","global","variable","that","redirects","via","thread","local","variable","This","allows","us","to","swap","in","different","op","implementations","in","codegen","."]
code: def __getattr__(self, name):
      return getattr(self._get_handler(), name)
  
imports: from __future__ import annotations
  import itertools
  from contextlib import contextmanager
  from itertools import chain
  from threading import local
  from typing import Any, Callable, TYPE_CHECKING, Union
  from unittest.mock import patch
  import sympy
  from torch._inductor.utils import IndentedBuffer
  from torch.fx.graph import inplace_methods, magic_methods
  from .utils import reduction_num_outputs, sympy_str, sympy_symbol
label_desc: Use image node_id 4 for calling the Virtualized obj's underlying member method code with example usage: obj.__getattr__(name) and returns: getattr