class_docstr: Module to read contents from a file, transform the contents with a function and write them to the datastore.
code: def transform(self):
      with open(self.file_path) as file:
          data = file.read()
  
      # if a transformation function is provided, transform the data
      if self.apply_func is not None:
          data = self.apply_func(data, **self.kwargs)
  
      self.logger.info(
          f'Object "{self.store_key}" read from file "{self.file_path}".'
      )
  
      # store the transformed/original contents
      return data
  
file_path: popmon/popmon/io/file_reader.py
imports: from __future__ import annotations
  from pathlib import Path
  from typing import Callable
  from popmon.base import Module
label_desc: Use image node_id 3 for calling the FileReader obj's underlying member method code with example usage: obj.transform() and returns: data