input: Write a python function to estimate the value of Pi using the Monte Carlo method.
  assert round(calculate_pi(1000), 1) in [3.0, 3.1, 3.2, 3.3, 3.4]
  assert round(calculate_pi(10000), 2) in [3.13, 3.14, 3.15]
  assert round(calculate_pi(100000), 3) in [3.141, 3.142, 3.143]
output: import random
  
  def calculate_pi(num_samples):
      inside_circle = 0
  
      for _ in range(num_samples):
          x = random.uniform(-1, 1)
          y = random.uniform(-1, 1)
          if x**2 + y**2 <= 1:
              inside_circle += 1
      
      return (inside_circle / num_samples) * 4