code: def synset_properties(synset: "wn.Synset", parameter: str):
      
  
      return_type = SS_PARAMETERS_TYPE_MAP[parameter]
      func = 'synset.' + parameter
  
      return eval(func) if isinstance(eval(func), return_type) else eval(func)()
docs: Making from NLTK's WordNet Synset's properties to function.
      Note: This is for compatibility with NLTK 2.x