code: def _find_v1_settings(self, settings):
          
  
          if 'module_name' in settings:
              modname = settings['module_name']
          if 'modules' not in settings or len(settings['modules']) == 0:
              raise DataError("No modules defined in module_settings.json file")
          elif len(settings['modules']) > 1:
              raise DataError("Multiple modules defined in module_settings.json file",
                              modules=[x for x in settings['modules']])
          else:
              modname = list(settings['modules'])[0]
  
          if modname not in settings['modules']:
              raise DataError("Module name does not correspond with an entry in the modules directory",
                              name=modname, modules=[x for x in settings['modules']])
  
          release_info = self._load_release_info(settings)
          modsettings = settings['modules'][modname]
          architectures = settings.get('architectures', {})
  
          target_defs = settings.get('module_targets', {})
          targets = target_defs.get(modname, [])
  
          return TileInfo(modname, modsettings, architectures, targets, release_info)
docs: Parse a v1 module_settings.json file.
  
          V1 is the older file format that requires a modules dictionary with a
          module_name and modules key that could in theory hold information on
          multiple modules in a single directory.