input: Write a function to create a Python dictionary that stores data about a student. The function should take the student's name, year, GPA, list of courses, and list of extracurricular activities as inputs and return the dictionary. If any input is missing, the function should return an empty dictionary.
  
  assert create_student_data('John Smith', 'Freshman', 3.25, ['math', 'english', 'Computer Science', 'Statistics'], ['Chess Club', 'Student Government', 'Debate Team']) == {
      'name': 'John Smith',
      'year': 'Freshman',
      'gpa': 3.25,
      'courses': ['math', 'english', 'Computer Science', 'Statistics'],
      'extracurricular': ['Chess Club', 'Student Government', 'Debate Team']
  }
  assert create_student_data('Mary Johnson', 'Sophomore', 3.5, ['physics', 'chemistry', 'biology'], []) == {
      'name': 'Mary Johnson',
      'year': 'Sophomore',
      'gpa': 3.5,
      'courses': ['physics', 'chemistry', 'biology'],
      'extracurricular': []
  }
  assert create_student_data('Alex Brown', 'Junior', None, ['economics', 'history'], ['Robotics Club']) == {}
  assert create_student_data(None, 'Senior', 4.0, ['art', 'music'], ['Drama Club', 'Film Society']) == {}
  assert create_student_data('Bob White', 'Senior', 3.9, None, ['Model UN']) == {}
  assert create_student_data('Chris Lee', 'Freshman', 3.4, ['geography'], None) == {}
output: def create_student_data(name, year, gpa, courses, extracurricular):
      if None in (name, year, gpa, courses, extracurricular):
          return {}
      return {
          'name': name,
          'year': year,
          'gpa': gpa,
          'courses': courses,
          'extracurricular': extracurricular
      }