code: def get_outkey(dskey, export_types):
      
      for exptype in export_types:
          if (dskey, exptype) in export:
              return (dskey, exptype)
docs: Extract the first pair (dskey, exptype) found in export