You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: imgur.rb
    path of file: ./repos/danbooru/app/logical/source/extractor
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# @see https://imgur.com
# @see https://apidocs.imgur.com/
# @see Source::URL::Imgur
module Source
  class Extractor
    class Imgur < Source::Extractor
      # This is the public client_id that the Imgur website uses to make API calls. gallery-dl has been using it since
      # 2019, so hardcoding it should be fine.
      IMGUR_CLI
    
      def image_urls
        # For .mp4 files (e.g. https://i.imgur.com/Kp9TdlX.mp4), we have to use the API to tell whether the original image is a .gif or not.
        if parsed_url.image_url? && parsed_url.file_ext == "mp4"
          image_urls_from_api.select { |url| Source::URL.parse(url).image_id == parsed_url.image_id }
        elsif parsed_url.image_url?
          [parsed_url.full_image_url]
        else
          image_urls_from_api
        end