input: Write a python function to create instances of Derived1 and Derived2 classes, and return their attributes in a dictionary format.
  assert create_instances(10, 'John', 25) == {'Derived1': {'value': 10, 'name': 'John'}, 'Derived2': {'value': 10, 'age': 25}}
  assert create_instances(5, 'Alice', 30) == {'Derived1': {'value': 5, 'name': 'Alice'}, 'Derived2': {'value': 5, 'age': 30}}
  assert create_instances(0, 'Bob', 40) == {'Derived1': {'value': 0, 'name': 'Bob'}, 'Derived2': {'value': 0, 'age': 40}}
output: class Base:
      def __init__(self, value):
          self.value = value
  
  class Derived1(Base):
      def __init__(self, value, name):
          super().__init__(value)
          self.name = name
  
  class Derived2(Base):
      def __init__(self, value, age):
          super().__init__(value)
          self.age = age
  
  def create_instances(value, name, age):
      d1 = Derived1(value, name)
      d2 = Derived2(value, age)
      return {
          'Derived1': {'value': d1.value, 'name': d1.name},
          'Derived2': {'value': d2.value, 'age': d2.age}
      }