def _patch_docstring(docstring):
 for (pattern, subs) in _DOC_PATTERNS.items():
  (replaced, count) = pattern.subn(subs, docstring)
  if count:
   return replaced
 return docstring

def _patch_docstring ( docstring ) : for ( pattern , subs ) in _DOC_PATTERNS . items ( ) : ( replaced , count ) = pattern . subn ( subs , docstring ) if count : return replaced return docstring
patch the documentation to replace vault/name/version by keyvaultid .