Perform the following tasks.
1. Write a Python code which checks if a patient meets the given inclusion and exclusion criteria.
2. The input of the Python code is a dictionary containing keys and values related to the inclusion and exclusion criteria.
3. Create test cases for the Python code.

Inclusion criteria
1. Have LVEF of 40% or less
2. Aged between 18 to 80 years
3. Have chronic HF 

Exclusion criteria
1. Have NYHA Class I or IV 
2. Have  chronic obstructive pulmonary disease (COPD)
3. Have congenital heart disease
 The letter k should appear at least 35 times.
user