input: Write a function that defines a Python class "Person" with attributes "Name" and "Age". The function should initialize the object with a given name and age, and return the created object. If the input is invalid (e.g., no name or age provided), the function should return None.
  
  assert create_person("John", 25).__dict__=={'name': 'John', 'age': 25}
  assert create_person("Jane", 30).__dict__=={'name': 'Jane', 'age': 30}
  assert create_person("", 20)==None
  assert create_person("Alice", None)==None
  assert create_person(None, 22)==None
output: def create_person(name, age):
      if name and age:
          class Person:
              def __init__(self, name, age):
                  self.name = name
                  self.age = age
          return Person(name, age)
      else:
          return None