<｜begin▁of▁sentence｜>### Instruction:
Given a list of values [10, 20, 30, 40, 50], how would you rescale these values to be within the range [0, 10] using the 'rescale' function from igraph?
### Response:
from igraph.utils import rescale

# Define a list of values
data = [10, 20, 30, 40, 50]

# Rescale the values to be within the range [0, 10]
rescaled_data = rescale(data, out_range=(0, 10))
print(rescaled_data)
<|EOT|>
