Corrija o erro no script do google earth engine : ImageCollection (Error)
List.get, argument 'list': Invalid type.
Expected type: List<Object>.
Actual type: ImageCollection. viz_raster . Aqui está o exemplo de script: Map.setOptions('SATELLITE')////"ROADMAP", "SATELLITE", "HYBRID" or "TERRAIN" 

var Region = geometry

var runFire = ee.List([1985,1986, 2023, 2024]).map(function(i){
  
i = ee.Number(i).toInt().format()

// Define time interval to composite scenes
  var date_start= i.cat("-05-01");
  var date_end= i.cat("-07-31");

// Define a function to scale the data and mask unwanted pixels.
function maskL457sr(image) {
  // Bit 0 - Fill
  // Bit 1 - Dilated Cloud
  // Bit 2 - Unused
  // Bit 3 - Cloud
  // Bit 4 - Cloud Shadow
  var qaMask = image.select('QA_PIXEL').bitwiseAnd(parseInt('11111', 2)).eq(0);
  //var saturationMask = image.select('QA_RADSAT').eq(0);

  // Apply the scaling factors to the appropriate bands.
  var opticalBands = image.select('Red', 'NIR', 'SWIR1', 'SWIR2').multiply(0.0000275).add(-0.2);
  //var thermalBand = image.select('ST_B.*').multiply(0.00341802).add(149.0);

  // Replace the original bands with the scaled ones and apply the masks.
  return image.addBands(opticalBands, null, true)
      //.addBands(thermalBand, null, true)
      .updateMask(qaMask)
      //.updateMask(saturationMask);
}

//_________________________________________________________________________

// Define function to prepare OLI images.
function prepOLI(img) {
  img = img.select([ 'SR_B4', 'SR_B5', 'SR_B6','SR_B7', 'QA_PIXEL'],[ 'Red', 'NIR', 'SWIR1','SWIR2', 'QA_PIXEL']);
  //img = applyScaleFactors(img);
  //img = prepSrL8(img);
  img = maskL457sr(img);
  //img = renameOLI(img);
  //img = addIndices(img);
  //img = addNBR(img);
  //img = addNDVI(img);
  //img = add_MIRBI(img);
  //img = add_NBR_mask(img);
  return ee.Image(img)//.copyProperties(img, img.propertyNames()))
  .set('data',  ee.Number.parse(img.date().format("YYYYMMdd")).toInt())
  .set('anomes',  ee.Number.parse(img.date().format("YYYYMM")).toInt())
  .set('year',  ee.Number.parse(img.date().format("YYYY")).toInt())
  .addBands(ee.Image.constant(ee.Number.parse(img.date().format("YYYYMMdd"))).toInt().rename('Date'))
  .addBands(ee.Image.constant(ee.Number.parse(img.date().format("YYYYMM"))).toInt().rename('Months'))
  .addBands(ee.Image.constant(ee.Number.parse(img.date().format("YYYY"))).toInt().rename('Years'));
}

// Define function to prepare ETM+ images.
function prepETM(img) {
  img = img.select([ 'SR_B3', 'SR_B4','SR_B5','SR_B7', 'QA_PIXEL'],[ 'Red', 'NIR', 'SWIR1','SWIR2','QA_PIXEL']);
  //img = applyScaleFactors(img);
  //img = prepSrL8(img);
  img = maskL457sr(img);
  //img = renameETM(img);
  //img = addIndices(img);
  //img = etm2oli(img);
  //img = addNBR(img);
  //img = addNDVI(img);
  //img = add_MIRBI(img);
  //img = add_NBR_mask(img);
  return ee.Image(img)//.copyProperties(img, img.propertyNames()))
  .set('data',  ee.Number.parse(img.date().format("YYYYMMdd")).toInt())
  .set('anomes',  ee.Number.parse(img.date().format("YYYYMM")).toInt())
  .set('year',  ee.Number.parse(img.date().format("YYYY")).toInt())
  .addBands(ee.Image.constant(ee.Number.parse(img.date().format("YYYYMMdd"))).toInt().rename('Date'))
  .addBands(ee.Image.constant(ee.Number.parse(img.date().format("YYYYMM"))).toInt().rename('Months'))
  .addBands(ee.Image.constant(ee.Number.parse(img.date().format("YYYY"))).toInt().rename('Years'));
}


// import collections
// landsat 5 - TM
  var L5coll = ee.ImageCollection('LANDSAT/LT05/C02/T1_L2') 
  .filterBounds(Region)
  .filterDate(date_start,date_end)
  //.map(function(image){return image.clip(Region)})
  .map(prepETM);

// landsat 7 - ETM
  var L7coll = ee.ImageCollection('LANDSAT/LE07/C02/T1_L2')
  .filterBounds(Region)
  .filterDate(date_start,date_end)
  //.map(function(image){return image.clip(Region)})
  .map(prepETM);
  
// landsat 8 - OLI
  var L8coll = ee.ImageCollection('LANDSAT/LC08/C02/T1_L2')
  .filterBounds(Region)
  .filterDate(date_start,date_end)
  //.map(function(image){return image.clip(Region)})
  .map(prepOLI);
  
// landsat 9 - OLI2
var L9coll = ee.ImageCollection('LANDSAT/LC09/C02/T1_L2')
  .filterBounds(Region)
  .filterDate(date_start,date_end)
  //.map(function(image){return image.clip(Region)})
  .map(prepOLI);

// merge collections 
  var image_collection_type = ee.ImageCollection(L5coll.merge(L7coll).merge(L8coll).merge(L9coll))

//_________________________________________________________________________



var add_NBR_MIRBI = function  (img) {
  var NBR = img.addBands(img.normalizedDifference(['SWIR2', 'NIR']).rename('NBR'))
  var mirbi = img.expression('10* float(b("' + 'SWIR2' + '"))/10000 - 9.8 * float( b("' + 'SWIR1' + '")) /10000 + 2').rename('MIRBI');
  return img.addBands(NBR, mirbi);
  
}

var NBR_Cicatrizes = function  (img) {
  var NBR = img.addBands(img.normalizedDifference(['SWIR2', 'NIR']).rename('NBR1'))
  var mirbi = img.expression('10* float(b("' + 'SWIR2' + '"))/10000 - 9.8 * float( b("' + 'SWIR1' + '")) /10000 + 2').rename('MIRBI');
  var greenestT = NBR.select('NBR1');
  var greenestT1 = img.select('Date')
  var greenestT2 = mirbi.select('MIRBI');
  var BA_seed_NBR_MIRBI = greenestT.gte(0).or(greenestT2.gte(1.99996346970886))//-0.05)//-0.08)//1.44
  var BA_seed_MIRBI = BA_seed_NBR_MIRBI.not()
  var MaskDates = greenestT1.updateMask(BA_seed_MIRBI).rename('Date2')
  return img.addBands([NBR, mirbi, MaskDates])
};


var image_collection_type1 = image_collection_type
.map(add_NBR_MIRBI)
//.map(NBR_Cicatrizes);
  
  return image_collection_type1
  
});

var viz_raster = ee.ImageCollection.fromImages(runFire.map(function(viz){
  return ee.List(viz).get(0);
}));

print(viz_raster, 'viz_raster')