def get_username_from_uid(uid):
    if isinstance(uid, int):
        return pwd.getpwuid(uid).pw_name
    return uid
Return the username of a given uid.
dataset/ETHPy150Open circus-tent/circus/circus/util.py/get_username_from_uid