code: def _describe_bitmask(
      bits: int, table: Dict[Any, str], default: str = "0"
  ) -> str:
      
      result = []
      for bit, name in table.items():
          if bit & bits:
              result.append(name)
      if not result:
          return default
      return "|".join(result)
docs: Returns a bitmask in human readable form.
  
      This is a private function, used internally.
  
      Args:
          bits (int): The bitmask to be represented.
          table (Dict[Any,str]): A reverse lookup table.
          default (Any): A default return value when bits is 0.
  
      Returns: str: A printable version of the bits variable.