def METHOD_NAME( custom_options = {} ):
  """Defines a context manager to be used in case a shared YCM state
  between subtests is to be avoided, as could be the case with completion
  caching."""
  with UserOptions( custom_options ):
    ycm = YouCompleteMe()
    WaitUntilReady()
    try:
      test_utils.VIM_PROPS_FOR_BUFFER.clear()
      yield ycm
    finally:
      StopServer( ycm )