def has_tags(available, required):
 for (key, value) in required.items():
  if ((key not in available) or (value != available[key])):
   return False
 return True

def has_tags ( available , required ) : for ( key , value ) in required . items ( ) : if ( ( key not in available ) or ( value != available [ key ] ) ) : return False return True
helper method to determine if tag requested already exists .