input: Write a function to define a class named Student in Python that initializes objects with attributes name, age, and gender. The function should be able to create objects of type Student with these attributes.
  
  def create_student(name, age, gender):
      class Student:
          def __init__(self, name, age, gender):
              self.name = name
              self.age = age
              self.gender = gender
      return Student(name, age, gender)
  
  assert create_student("John", 20, "Male").name == "John"
  assert create_student("Sarah", 19, "Female").age == 19
  assert create_student("Alex", 21, "Non-binary").gender == "Non-binary"
output: def create_student(name, age, gender):
      class Student:
          def __init__(self, name, age, gender):
              self.name = name
              self.age = age
              self.gender = gender
      return Student(name, age, gender)