code: def _make_wn18_metadata(synset_definitions_path):
      synsets = {}
      with epath.Path(synset_definitions_path).open() as f:
          for line in f:
              synset_id, name, definition = line.strip().split("\t")
              synsets[synset_id] = dict(
                  name=name, definition=definition
              )
      return dict(relations=_RELATIONS, synsets=synsets)
  
file_path: datasets/tensorflow_datasets/text/wordnet.py
imports: import os
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 1 for calling a global function with example usage: _make_wn18_metadata(synset_definitions_path) and returns: dict