def METHOD_NAME(x, y, u, v):
    # Create u and v test cubes from x, y, u, v arrays.
    coord_cls = DimCoord if x.ndim == 1 else AuxCoord
    x_coord = coord_cls(x, long_name="x")
    y_coord = coord_cls(y, long_name="y")
    u_cube = Cube(u, long_name="u", units="ms-1")
    if x.ndim == 1:
        u_cube.add_dim_coord(y_coord, 0)
        u_cube.add_dim_coord(x_coord, 1)
    else:
        u_cube.add_aux_coord(y_coord, (0, 1))
        u_cube.add_aux_coord(x_coord, (0, 1))
    v_cube = u_cube.copy()
    v_cube.rename("v")
    v_cube.data = v
    return u_cube, v_cube