def METHOD_NAME():
    data = ak.highlevel.Array([[1, 3, 5, 4, 2], [], [2, 3, 1], [5]]).layout
    assert to_list(ak.min(data, axis=1, initial=4, highlevel=False)) == [1, None, 1, 4]
    assert (
        ak.min(data.to_typetracer(), axis=1, initial=4, highlevel=False).form
        == ak.min(data, axis=1, initial=4, highlevel=False).form
    )
    assert to_list(ak.min(data, axis=1, highlevel=False)) == [1, None, 1, 5]
    assert (
        ak.min(data.to_typetracer(), axis=1, highlevel=False).form
        == ak.min(data, axis=1, highlevel=False).form
    )
    assert to_list(ak.max(data, axis=1, initial=4, highlevel=False)) == [5, None, 4, 5]
    assert (
        ak.max(data.to_typetracer(), axis=1, initial=4, highlevel=False).form
        == ak.max(data, axis=1, initial=4, highlevel=False).form
    )
    assert to_list(ak.max(data, axis=1, highlevel=False)) == [5, None, 3, 5]
    assert (
        ak.max(data.to_typetracer(), axis=1, highlevel=False).form
        == ak.max(data, axis=1, highlevel=False).form
    )
    data = ak.highlevel.Array(
        [[1.1, 3.3, 5.5, 4.4, 2.2], [], [2.2, 3.3, 1.1], [5.5]]
    ).layout
    assert to_list(ak.min(data, axis=1, initial=4, highlevel=False)) == [
        1.1,
        None,
        1.1,
        4,
    ]
    assert (
        ak.min(data.to_typetracer(), axis=1, initial=4, highlevel=False).form
        == ak.min(data, axis=1, initial=4, highlevel=False).form
    )
    assert to_list(ak.min(data, axis=1, highlevel=False)) == [1.1, None, 1.1, 5.5]
    assert (
        ak.min(data.to_typetracer(), axis=1, highlevel=False).form
        == ak.min(data, axis=1, highlevel=False).form
    )
    assert to_list(ak.max(data, axis=1, initial=4, highlevel=False)) == [
        5.5,
        None,
        4,
        5.5,
    ]
    assert (
        ak.max(data.to_typetracer(), axis=1, initial=4, highlevel=False).form
        == ak.max(data, axis=1, initial=4, highlevel=False).form
    )
    assert to_list(ak.max(data, axis=1, highlevel=False)) == [5.5, None, 3.3, 5.5]
    assert (
        ak.max(data.to_typetracer(), axis=1, highlevel=False).form
        == ak.max(data, axis=1, highlevel=False).form
    )
    data = ak.contents.NumpyArray(np.array(primes[2 : 2 * 3 * 5], dtype=np.int32))
    assert to_list(ak.min(data, axis=-1, initial=4, highlevel=False)) == 4
    assert to_list(ak.min(data, axis=-1, highlevel=False)) == 5
    assert to_list(ak.max(data, axis=-1, initial=114, highlevel=False)) == 114
    assert to_list(ak.max(data, axis=-1, highlevel=False)) == 113
    data = ak.contents.NumpyArray(np.array(primes[2 : 2 * 3 * 5], dtype=np.uint64))
    assert to_list(ak.min(data, axis=-1, initial=4, highlevel=False)) == 4
    assert to_list(ak.min(data, axis=-1, highlevel=False)) == 5
    assert to_list(ak.max(data, axis=-1, initial=114, highlevel=False)) == 114
    assert to_list(ak.max(data, axis=-1, highlevel=False)) == 113
    data = ak.contents.NumpyArray(np.array(primes[2 : 2 * 3 * 5], dtype=np.uint32))
    assert to_list(ak.min(data, axis=-1, initial=4, highlevel=False)) == 4
    assert to_list(ak.min(data, axis=-1, highlevel=False)) == 5
    assert to_list(ak.max(data, axis=-1, initial=114, highlevel=False)) == 114
    assert to_list(ak.max(data, axis=-1, highlevel=False)) == 113