I asked a question here that was kindly answered.
Based on the answer, I used this piece of code to find all trials associated with diabetes:
from Bio