input: Write a python function to create instances of Car and Dog classes and print their attributes and methods.
  assert create_instances_and_print() == "The car is a Toyota Camry manufactured in 2018\nThe dog is a Labrador named Max\n"
output: def create_instances_and_print():
      class Car:
          def __init__(self, make, model, year):
              self.make = make
              self.model = model
              self.year = year
  
          def __str__(self):
              return f"The car is a {self.make} {self.model} manufactured in {self.year}"
  
      class Dog:
          def __init__(self, breed, name):
              self.breed = breed
              self.name = name
  
          def __str__(self):
              return f"The dog is a {self.breed} named {self.name}"
  
      car = Car("Toyota", "Camry", 2018)
      dog = Dog("Labrador", "Max")
  
      return f"{car}\n{dog}\n"