input: Write a python function to create a Patient object and retrieve its details.
  assert create_and_retrieve_patient('John Doe', 30, ['diabetes'], ['metformin'], ['penicillin']) == ('John Doe', 30, ['diabetes'], ['metformin'], ['penicillin'])
  assert create_and_retrieve_patient('Jane Smith', 25, ['asthma'], ['albuterol'], ['none']) == ('Jane Smith', 25, ['asthma'], ['albuterol'], ['none'])
  assert create_and_retrieve_patient('Alice Johnson', 45, [], [], []) == ('Alice Johnson', 45, [], [], [])
output: def create_and_retrieve_patient(name, age, medical_conditions, medications, allergies):
      class Patient:
          def __init__(self, name, age, medical_conditions, medications, allergies):
              self.name = name
              self.age = age
              self.medical_conditions = medical_conditions
              self.medications = medications
              self.allergies = allergies
  
          def get_details(self):
              return (self.name, self.age, self.medical_conditions, self.medications, self.allergies)
      
      patient = Patient(name, age, medical_conditions, medications, allergies)
      return patient.get_details()