code: def get_first_nondeprecated_class(cls):
      """Get the first non-deprecated class in class hierarchy.
  
      For internal use only, no backwards compatibility guarantees.
  
      Args:
        cls: A class which may be marked as a deprecated alias.
  
      Returns:
        First class in the given class's class hierarchy (traversed in MRO order)
        that is not a deprecated alias.
      """
      for mro_class in inspect.getmro(cls):
          if mro_class.__name__ != "_NewDeprecatedClass":
              return mro_class
  
file_path: tfx/tfx/utils/deprecation_utils.py
imports: import functools
  import inspect
  import warnings
label_desc: Use image node_id 7 for calling a global function with example usage: get_first_nondeprecated_class(cls) and returns: mro_class