code: @Override
      public Object[][] getDataByIndex(int[] indexes) throws IOException {
          logger.entering(indexes);
  
          Object[][] yamlObj = getAllData();
          Object[][] yamlObjRequested = new Object[indexes.length][yamlObj[0].length];
  
          int i = 0;
          for (Integer index : indexes) {
              index--;
              yamlObjRequested[i] = yamlObj[index];
              i++;
          }
  
          logger.exiting((Object[]) yamlObjRequested);
          return yamlObjRequested;
      }
docs: Generates an object array in iterator as TestNG DataProvider from the YAML data filtered per given indexes. This
  method may throw {@link DataProviderException} when an unexpected error occurs during data provision from YAML
  file.
  
  @param indexes
  The indexes for which data is to be fetched as a conforming string pattern.
  
  @return An Object[][] object to be used with TestNG DataProvider.
  @throws IOException