text: require('dotenv').config();
  
  const core = require('@actions/core');
  const imageMagick = require('imagemagick');
  
  exports.createMostUsedLanguagesImage = function (
    languagesMetricsData,
    pathToTheImagesFolder,
    imageExtension,
    imageName,
    widthSize,
    heightSize,
    fontFamily,
    mainColor,
    backgroundColor,
  ) {
    if (
      languagesMetricsData === 'undefined' ||
      languagesMetricsData === '' ||
      languagesMetricsData === undefined ||
      languagesMetricsData === null
    ) {
      core.info('>>> Languages metrics data is empty, or has not been received.');
      return;
    }
  
    try {
      imageMagick.convert(
        [
          `${pathToTheImagesFolder + imageName + imageExtension}`,
          '-size',
          `${widthSize}x${heightSize}`,
          '-background',
          `${backgroundColor}`,
          '-fill',
          `${mainColor}`,
          '-font',
          `${fontFamily}`,
          `pango:${languagesMetricsData}`,
          `${pathToTheImagesFolder + imageName + imageExtension}`,
        ],
        // Fix it: Error message being generated. Message: null
        // function (error) {
        //   core.error(`>>> Error: ${error}`);
        // },
      );
    } catch (error) {
      core.error(error.message);
    }
  };
  