input: Write a python function to estimate the value of Pi using the Monte Carlo method.
  assert round(monte_carlo_pi(1000), 2) == 3.14
  assert round(monte_carlo_pi(10000), 2) == 3.14
  assert round(monte_carlo_pi(50000), 2) == 3.14
output: import random
  
  def monte_carlo_pi(num_samples):
      inside_circle = 0
      for _ in range(num_samples):
          x, y = random.uniform(0, 1), random.uniform(0, 1)
          if x**2 + y**2 <= 1:
              inside_circle += 1
      return (inside_circle / num_samples) * 4