@classmethod
def shot(cls, display_on=None):
    """
        (classmethod & context manager) espressomaker.Espresso.shot(display_on = None)
        
        Provides a context manager to run blocks of code without letting the system sleep.
        
        Inputs:
            display_on = Bool. Default state is None, which means default is Espresso.config() setting.
        
        Yields:
            Context manager.
            
        Example:
        
        >>>with Espresso.shot():
        ...    function_1()
        ...    function_2()
        
        """
    if display_on == None:
        cls.display_on = cls._display_on_set
    else:
        assert isinstance(display_on, bool
            ), '"display_on" setting must be bool (True/False).'
        cls.display_on = display_on
    return cls()._shot(_display_on_shot=cls.display_on)
