parameters: (api)
docstring: Commit to a particular API, and trigger ImportErrors on subsequent
         dangerous imports
docstring_summary: Commit to a particular API, and trigger ImportErrors on subsequent
         dangerous imports
docstring_tokens: Commit to a particular API and trigger ImportErrors on subsequent dangerous imports
function: def commit_api(api):
      """Commit to a particular API, and trigger ImportErrors on subsequent
         dangerous imports"""
      modules = set(api_to_module.values())
  
      modules.remove(api_to_module[api])
      for mod in modules:
          ID.forbid(mod)
function_tokens: def commit_api ( api ) : modules = set ( api_to_module . values ( ) ) modules . remove ( api_to_module [ api ] ) for mod in modules : ID . forbid ( mod )