input: Write a python function to create a course, assign an instructor, and enroll students to that course.
  assert course.name == "Math"
  assert course.course_id == "M101"
  assert course.instructor.name == "John"
  assert course.instructor.instructor_id == "I1001"
  assert course.students[0].name == "Alice"
  assert course.students[0].student_id == "S1001"
  assert course.students[1].name == "Bob"
  assert course.students[1].student_id == "S1002"
output: class Person:
      def __init__(self, name, id):
          self.name = name
          self.id = id
  
  class Instructor(Person):
      def __init__(self, name, instructor_id):
          super().__init__(name, instructor_id)
          self.instructor_id = instructor_id
  
  class Student(Person):
      def __init__(self, name, student_id):
          super().__init__(name, student_id)
          self.student_id = student_id
  
  class Course:
      def __init__(self, name, course_id, instructor, students):
          self.name = name
          self.course_id = course_id
          self.instructor = instructor
          self.students = students
  
  def create_course(course_name, course_id, instructor_name, instructor_id, students_info):
      instructor = Instructor(instructor_name, instructor_id)
      students = [Student(name, student_id) for name, student_id in students_info]
      return Course(course_name, course_id, instructor, students)
  
  # Create the course with given details
  course = create_course("Math", "M101", "John", "I1001", [("Alice", "S1001"), ("Bob", "S1002")])