parameters: (doc, key, default)
docstring: Return the value in 'doc' with key 'key' if it is present and not None, returns
      the specified default value otherwise.
docstring_summary: Return the value in 'doc' with key 'key' if it is present and not None, returns
      the specified default value otherwise.
docstring_tokens: Return the value in doc with key key if it is present and not None returns the specified default value otherwise .
function: def getdefault(doc, key, default):
      """Return the value in 'doc' with key 'key' if it is present and not None, returns
      the specified default value otherwise."""
      value = doc.get(key)
      if value is not None:
          return value
      else:
          return default
function_tokens: def getdefault ( doc , key , default ) : value = doc . get ( key ) if value is not None : return value else : return default