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: stripe.rb
    path of file: ./repos/faker/lib/faker/default
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Faker
  class Stripe < Base
    class << self
      ##
      # Produces a random valid card number.
    
      def invalid_card(card_error: nil)
        invalid_cards = translate('faker.stripe.invalid_cards').keys

        if card_error.nil?
          card_error = sample(invalid_cards).to_s
        else
          unless invalid_cards.include?(card_error.to_sym)
            raise ArgumentError,
                  "Invalid credit cards argument can be left blank or include #{invalid_cards.join(', ')}"
          end