Learning on Random Balls is Sufficient for Estimating (Some) Graph Parameters