def assert_numpy(x):
    if not isinstance(x, np.ndarray):
        x = x.as_numpy_array()
    else:
        x = x.copy()
    return x
Create and return a user, either the AnonymousUser or a normal Django user,
dataset/ETHPy150Open BRML/climin/climin/mathadapt.py/assert_numpy--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/django-openid-auth-0.5/django_openid_auth/tests/test_admin.py/create_user