<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def from_caller_file():
        '''return a `Path` from the path of caller file'''
        import inspect
        curframe = inspect.currentframe()
        calframe = inspect.getouterframes(curframe, 2)
        filename = calframe[1].filename
        if not os.path.isfile(filename):
            raise RuntimeError('caller is not a file')
        return Path(filename)