input: Write a function to create objects of type Student in Python containing relevant attributes. If the given input is a dictionary containing 'name', 'age', and 'gender', return a Student object initialized with these attributes. If the input is not a dictionary or does not contain the required keys, return None.
  
  def create_student(input_dict):
      if isinstance(input_dict, dict) and 'name' in input_dict and 'age' in input_dict and 'gender' in input_dict:
          return Student(input_dict['name'], input_dict['age'], input_dict['gender'])
      return None
  
  assert create_student({'name': 'Alice', 'age': 20, 'gender': 'Female'}) == Student('Alice', 20, 'Female')
  assert create_student({'name': 'Bob', 'age': 22, 'gender': 'Male'}) == Student('Bob', 22, 'Male')
  assert create_student({'name': 'Charlie', 'age': 19}) == None
  assert create_student(['name', 'age', 'gender']) == None
output: def create_student(input_dict):
      if isinstance(input_dict, dict) and 'name' in input_dict and 'age' in input_dict and 'gender' in input_dict:
          return Student(input_dict['name'], input_dict['age'], input_dict['gender'])
      return None