input: Write a python function to generate a random password of a given length using the RandomPasswordGenerator class.
  assert len(RandomPasswordGenerator(12).generate_password()) == 12
  assert len(RandomPasswordGenerator(8).generate_password()) == 8
  assert len(RandomPasswordGenerator(16).generate_password()) == 16
output: import string
  import random
  
  class RandomPasswordGenerator:
      def __init__(self, length):
          self.length = length
  
      def generate_password(self):
          characters = string.ascii_letters + string.digits + string.punctuation
          password = ''.join(random.choice(characters) for _ in range(self.length))
          return password