input: Write a python function to select points of distribution based on a warehouse location and a maximum distance.
  assert select_points_of_distribution([(2, 3), (5, 5), (8, 8)], (0, 0), 5) == [(2, 3), (5, 5)]
  assert select_points_of_distribution([(1, 1), (2, 2), (3, 3)], (0, 0), 3) == [(1, 1), (2, 2), (3, 3)]
  assert select_points_of_distribution([(0, 0), (1, 1), (4, 4)], (2, 2), 3) == [(0, 0), (1, 1)]
output: def select_points_of_distribution(points, warehouse, max_distance):
      def distance(point1, point2):
          return ((point1[0] - point2[0]) ** 2 + (point1[1] - point2[1]) ** 2) ** 0.5
      
      result = []
      for point in points:
          if distance(point, warehouse) <= max_distance:
              result.append(point)
      
      return result