def create_user(email=None, password='', is_public=False, is_active=True,
                is_admin=None, interactive=False):

    if interactive:
        return create_user_interactive(email, password, is_public, is_active,
                                       is_admin)

    if not email:
        raise ValueError

    if get_user(email) is not None:
        raise UserExistsError

    if not isinstance(password, basestring):
        raise ValueError

    if password == '':
        is_active = False

    user = mk_user(email, password, is_public, is_active, is_admin)

    return user
Test whether argument path is a Python script.
dataset/ETHPy150Open tooxie/shiva-server/shiva/admin.py/create_user--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/CGIHTTPServer.py/CGIHTTPRequestHandler.is_python