def lookupFunction(self, event):
    """
    Fetch a function from the project's library for an event.
    
    @param event:       Event for which the function should be sought
    @returns a Function or None if it wasn't found
    """
    try:
      library = self.project.targets["code"].library
    except __HOLE__:
      return
    
    if event.name in library.functions:
      return library.functions[event.name]
dataset/ETHPy150Open skyostil/tracy/src/analyzer/Analyzer.py/InteractiveAnalyzer.lookupFunction