code: def get_function_annotations(event, funcname, type=None, namespace=None):
      
      if type:
          postfix = "|" + type
      else:
          postfix = "|.+"
  
      def matchfunc(key, annkey):
          """Check if the provider regex matches an annotation key."""
          return re.match(key, annkey) is not None
  
      return get_annotations(event, funcname + postfix, namespace=namespace,
                             matchfunc=matchfunc)
docs: Produce a list of function annotations in in this event.