def info(self, locator: CheckupLocator) -> Diagnostic:
        """
        Generate a full ``Diagnostic`` for a reported checkup location.

        Args:
            locator (CheckupLocator):
                location where a report for this checkup occurred

        Returns:
            Diagnostic

        """
        filename = locator.filename
        lineno = locator.lineno

        return Diagnostic(
            filename=filename,
            lineno=lineno,
            traceback=locator.traceback,
            source=lookup_source(filename, lineno),
            description=self.description,
            reference=self.reference,
        )

        Generate a full ``Diagnostic`` for a reported checkup location.

        Args:
            locator (CheckupLocator):
                location where a report for this checkup occurred

        Returns:
            Diagnostic

        
cupynumeric/_array/doctor.py