def NormalizeUserIdToUri(userid):
  userid = userid.strip()

  # If already in a URI form, we're done:
  if (userid.startswith('http:') or
      userid.startswith('https:') or
      userid.startswith('acct:')):
    return userid

  if userid.find('@') > 0:
    return 'acct:'+userid

  # Catchall:  Guess at http: if nothing else works.
  return 'http://'+userid
If an invalid vesion is passed to ``parse_version``,
dataset/ETHPy150Open mimecuvalo/helloworld/packages/magicsig/__init__.py/NormalizeUserIdToUri--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/flocker/common/test/test_version.py/InvalidVersionTests.test_invalid_Version