':type path: str
:rtype: dict[str, str] | None'

def classify(self, path):

    result = self._classify(path)
    if (result is None):
        return None
    if (path in self.compile_paths):
        result['compile'] = path
    if ((path in self.sanity_paths) and ('sanity' not in result)):
        result['sanity'] = path
    return result
