code: def parse(trigger_word_file):
      
      with open(trigger_word_file) as fd:
          triggers_dict = json.load(fd)
      sources = [Source(s) for s in triggers_dict['sources']]
      sinks = [
          Sink.from_json(trigger, data)
          for trigger, data in triggers_dict['sinks'].items()
      ]
      return Definitions(sources, sinks)
docs: Parse the file for source and sink definitions.
  
      Returns:
         A definitions tuple with sources and sinks.