def anonymize_file(file)
      # Temporarily adjust the ruby-dicom log threshold (to suppress messages from the DObject class):
      @original_level = logger.level
      logger.level = @logger_level
      dcm = DObject.read(file)
      logger.level = @original_level
      anonymize_dcm(dcm)
      dcm
    end
def anonymize_file(file)
      # Temporarily adjust the ruby-dicom log threshold (to suppress messages from the DObject class):
      @original_level = logger.level
      logger.level = @logger_level
      dcm = DObject.read(file)
      logger.level = @original_level
      anonymize_dcm(dcm)
      dcm
    end
Performs anonymization of a DICOM file.

 @param [String] file a DICOM file path