def getDocUID(exp_uid,alg_uid=None):
  """
  Each instance of an app (with an (app_id,exp_uid) pair) and an algorithm (with an (app_id,exp_uid,alg_id,alg_uid) tuple)
  gets its own namespace. This method defines that namespace given the exp_uid, or (exp_uid,alg_uid)

  Usage::\n
    print utils.getDocUID(exp_uid)
    >>> 'eee9d58c61d580029113ba593446d23a'

    print utils.getDocUID(exp_uid,alg_uid)
    >>> 'eee9d58c61d580029113ba593446d23a-f081d374abac6c009f5a74877f8b9f3c'
  """
  if alg_uid==None:
    return exp_uid
  else:
    return exp_uid + "-" + alg_uid