code: def _replaced(__values, **__replacements):
      
      return tuple(o for o in (__replacements.get(name, name) for name in __values) if o)
docs: Replace elements in iterable with values from an alias dict, suppressing empty values.
  
      Used to consistently enhance how certain fields are displayed in list and detail pages.