@classmethod
def for_frame(cls, frame):
    """
        Returns the `Source` object corresponding to the file the frame is executing in.
        """
    return cls.for_filename(frame.f_code.co_filename, frame.f_globals or {})
