code: def has_nested_attr(__obj: object, __name: str) -> bool:
      """
      Determine whether a given object has an attribute with a `.` separated name.
      """
      pre, _, post = __name.rpartition(".")
      if pre:
          if has_nested_attr(__obj, pre):
              return has_nested_attr(get_nested_attr(__obj, pre), post)
          else:
              return False
      else:
          return hasattr(__obj, post)
  
imports: from functools import reduce
  from typing import Any, overload
label_desc: Use image node_id 5 for calling a global function with example usage: has_nested_attr(__obj, __name) and returns: hasattr, has_nested_attr, False