def path_is_rom(console, path):
  if console.extensions == "":
    return True

  # Normalize the extension based on the things we validly ignore.
  # Aka capitalization, whitespace, and leading dots
  normalize = lambda ext: ext.lower().strip().lstrip('.')

  (name, ext) = os.path.splitext(path)
  valid_extensions = console.extensions.split(',')
  return normalize(ext) in map(normalize, valid_extensions)
Returns a listing of cities within the platform.
dataset/ETHPy150Open scottrice/Ice/ice/consoles.py/path_is_rom--crossover with--dataset/ETHPy150Open dhhagan/py-openaq/openaq/__init__.py/OpenAQ.cities