def round_and_clip_image(image):
    """
    Given a dictionary, ensure that the values in the 'pixels' list are all
    integers in the range [0, 255].

    All values should be converted to integers using Python's `round` function.

    Any locations with values higher than 255 in the input should have value
    255 in the output; and any locations with values lower than 0 in the input
    should have value 0 in the output.
    """
    result = image.copy()

    s = len(result['pixels'])

    for i in range(s):
        x = round(result['pixels'][i])
        if x < 0:
            x = 0
        elif x > 255:
            x = 255

        result['pixels'][i] = x

    return result