def _make_builder_configs():
  """Construct a list of BuilderConfigs.

  Construct a list of 60 Imagenet2012CorruptedConfig objects, corresponding to
  the 12 corruption types, with each type having 5 severities.

  Returns:
    A list of 60 Imagenet2012CorruptedConfig objects.
  """
  config_list = []
  for each_corruption in TYPE_LIST:
    for each_severity in range(1, 6):
      name_str = each_corruption + '_' + str(each_severity)
      version_str = '0.0.1'
      description_str = 'corruption type = ' + each_corruption + ', severity = '
      description_str += str(each_severity)
      config_list.append(
          Imagenet2012CorruptedConfig(
              name=name_str,
              version=version_str,
              description=description_str,
              corruption_type=each_corruption,
              severity=each_severity,
          ))
  return config_list
def _make_builder_configs ( ) : config_list = [ ] for each_corruption in TYPE_LIST : for each_severity in range ( 1 , 6 ) : name_str = each_corruption + '_' + str ( each_severity ) version_str = '0.0.1' description_str = 'corruption type = ' + each_corruption + ', severity = ' description_str += str ( each_severity ) config_list . append ( Imagenet2012CorruptedConfig ( name = name_str , version = version_str , description = description_str , corruption_type = each_corruption , severity = each_severity , ) ) return config_list
Construct a list of BuilderConfigs.

  Construct a list of 60 Imagenet2012CorruptedConfig objects, corresponding to
  the 12 corruption types, with each type having 5 severities.

  Returns:
    A list of 60 Imagenet2012CorruptedConfig objects.