{(0, 20), (2, 70), (10, 45), (1, 30), (3, 70)}

is this a function

Yes, this is a function. In a function, each input (x-value) corresponds to only one output (y-value), and this set of ordered pairs satisfies that condition.