(self)
return reduce(
            lambda acc, cfg: self.cfgs.get(cfg, acc),
            less_accurate_to_most_accurate,
            None
        )
:return: The most accurate CFG present in the CFGManager, or None if it does not hold any.
:return: The most accurate CFG present in the CFGManager, or None if it does not hold any.
: return : The most accurate CFG present in the CFGManager or None if it does not hold any .
def get_most_accurate(self) -> Optional[CFGModel]:
        """
        :return: The most accurate CFG present in the CFGManager, or None if it does not hold any.
        """
        less_accurate_to_most_accurate = ['CFGFast', 'CFGEmulated']

        # Try to get the most accurate first, then default to the next, ... all the way down to `None`.
        # Equivalent to `self.cfgs.get(<LAST>, self.cfgs.get(<SECOND LAST>, ... self.cfgs.get(<FIRST>, None)))`.
        return reduce(
            lambda acc, cfg: self.cfgs.get(cfg, acc),
            less_accurate_to_most_accurate,
            None
        )
def get_most_accurate ( self ) -> Optional [ CFGModel ] : less_accurate_to_most_accurate = [ 'CFGFast' , 'CFGEmulated' ] # Try to get the most accurate first, then default to the next, ... all the way down to `None`. # Equivalent to `self.cfgs.get(<LAST>, self.cfgs.get(<SECOND LAST>, ... self.cfgs.get(<FIRST>, None)))`. return reduce ( lambda acc , cfg : self . cfgs . get ( cfg , acc ) , less_accurate_to_most_accurate , None )