code: def get_file_content_from_dataset_folder(
      dataset_class: Type[Any],
      file_name: str,
      raise_error_if_fails: bool = False,
  ) -> Optional[str]:
      """Returns the file content from the relevant dataset folder.
  
      Args:
        dataset_class: The dataset collection class for which the file has to be
          read.
        file_name: The name of the file to load.
        raise_error_if_fails: Whether to raise an error if the file's content cannot
          be retrieved.
  
      Returns:
        The requested file's content. If unavailable, it will return None if
        raise_error_if_fails is set to False, otherwise it will raise the
        encountered error.
      """
      file_path = get_filepath_in_dataset_folder(
          dataset_class, file_name
      )
      try:
          return file_path.read_text()
      except Exception as e:  # pylint: disable=broad-except
          if raise_error_if_fails:
              raise e
          else:
              return None
  
imports: import dataclasses
  import inspect
  from typing import Any, List, Mapping, Optional, Type, Union
  from etils import epath
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core import registered
  from tensorflow_datasets.core.utils import version
label_desc: Use image node_id 2 for calling a global function with example usage: get_file_content_from_dataset_folder(dataset_class, file_name, raise_error_if_fails) and returns: file_path, None