code: def find_external_metabolites(model):
      
      ex_comp = find_external_compartment(model)
      return [met for met in model.metabolites if met.compartment == ex_comp]
docs: Return all metabolites in the external compartment.