input: Write a Python function to create a student instance, set its attributes, and print its information.
  assert create_and_print_student("Alice", 20, "Female", "Computer Science", 3.8) == "Name: Alice\nAge: 20\nGender: Female\nMajor: Computer Science\nGPA: 3.8"
  assert create_and_print_student("Bob", 22, "Male", "Mathematics", 3.5) == "Name: Bob\nAge: 22\nGender: Male\nMajor: Mathematics\nGPA: 3.5"
  assert create_and_print_student("Charlie", 21, "Non-binary", "Physics", 3.9) == "Name: Charlie\nAge: 21\nGender: Non-binary\nMajor: Physics\nGPA: 3.9"
output: def create_and_print_student(name, age, gender, major, gpa):
      class Student:
          def __init__(self, name, age, gender, major, gpa):
              self.name = name
              self.age = age
              self.gender = gender
              self.major = major
              self.gpa = gpa
  
          def __str__(self):
              return f"Name: {self.name}\nAge: {self.age}\nGender: {self.gender}\nMajor: {self.major}\nGPA: {self.gpa}"
  
      student = Student(name, age, gender, major, gpa)
      return str(student)