class_docstr: Special methods to intercept.
class_docstr_tok: ["Special","methods","to","intercept","."]
docstr: Implements `__getattr__`.
docstr_tok: ["Implements","`","__getattr__","`","."]
code: def __getattr__(self, attr):
      """Implements `__getattr__`."""
      # By implementing __getattr__, attributes will first be accessed from self,
      # otherwise will be accessed from the deferred object.
      if (
          attr in _GETATTRIBUTE_PASSTHROUGH_OVERRIDE
          or
          # For some reason we can't use generators here because they behave
          # differently in Ipython REPL execution regime.
          any(
              tuple(
                  fn(attr)
                  for fn in _GETATTRIBUTE_PASSTHROUGH_OVERRIDE_CALLABLES
              )
          )
      ):
          raise AttributeError()
      return self.__action__(getattr, attr, _action_name=attr)
  
imports: import builtins
  import functools
  import math
  import operator
  import sys
  import tensorflow.compat.v2
label_desc: Use image node_id 2 for calling the SpecialMethods obj's underlying member method code with example usage: obj.__getattr__(attr) and returns: self