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: file_utils_helper.rb
    path of file: ./repos/carrierwave/spec/support
    
    the code of the file until where you have to start completion: module FileUtilsHelper
  # NOTE: Make FileUtils.mkdir_p to raise error only once
  def fake_failed_mkdir_p(error)
    original_mkdir_p = FileUtils.method(:mkdir_p
    
  def fake_failed_mkdir_p(error)
    original_mkdir_p = FileUtils.method(:mkdir_p)
    mkdir_p_called = false
    allow(FileUtils).to receive(:mkdir_p) do |args|
      if mkdir_p_called
        original_mkdir_p.call(*args)
      else
        mkdir_p_called = true
        raise error
      end
    end