def IsValidLanguageCode(lang):
  bcp47_obj = parser.ParseLanguage(str(lang.lower()))
  return bcp47_obj.IsWellformed() and bcp47_obj.IsValid()
Test that removing projectiles in use removes it from use
dataset/ETHPy150Open google/transitfeed/extensions/googletransit/extension_util.py/IsValidLanguageCode--crossover with--dataset/ETHPy150Open tuturto/pyherc/src/pyherc/test/unit/test_inventory.py/TestInventory.test_projectiles_in_use