def METHOD_NAME(shape):
    """Test dpnp.ones_like() with default parameters inside dpjit."""
    @dpjit
    def func(x):
        y = dpnp.ones_like(x)
        return y
    try:
        a = dpnp.zeros(shape)
        c = func(a)
    except Exception:
        pytest.fail("Calling dpnp.ones_like() inside dpjit failed.")
    if len(c.shape) == 1:
        assert c.shape[0] == a.shape[0]
    else:
        assert c.shape == a.shape
    assert (c.asnumpy() == 1).all()
    dummy = dpnp.ones_like(a)
    assert c.dtype == dummy.dtype
    assert c.usm_type == dummy.usm_type
    assert c.sycl_device == dummy.sycl_device
    if c.sycl_queue != dummy.sycl_queue:
        pytest.xfail(
            "Returned queue does not have the same queue as in the dummy array."
        )
    assert c.sycl_queue == dpctl._sycl_queue_manager.get_device_cached_queue(
        dummy.sycl_device
    )