def _change_uid_gid(uid, gid=None):
  if not os.geteuid() == 0:
    # Do not try to change the gid/uid if not root.
    return
  os.setgid(gid)
  os.setuid(uid)
Test for symmetry of a joint distribution.
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/lib/daemon_utils.py/_change_uid_gid--crossover with--dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/stats/contingency_tables.py/SquareTable.symmetry