code: def get_size_for_density(self, size, target_density):
          
          current_size = size
          current_density = DENSITY_MAP[self.source_density]
          target_density = DENSITY_MAP[target_density]
  
          return int(current_size * (target_density / current_density))
docs: Return the new image size for the target density