class_docstr: Format of the record files.
  
  The values of the enumeration are used as filename endings/suffix.
code: def from_value(
      cls, file_format: Union[str, "FileFormat"]
  ) -> "FileFormat":
      try:
          return cls(file_format)
      except ValueError as e:
          all_values = [f.value for f in cls]
          raise ValueError(
              f"{file_format} is not a valid FileFormat! "
              f"Valid file formats: {all_values}"
          ) from e
  
imports: from __future__ import annotations
  import abc
  from collections.abc import Iterator
  import enum
  import itertools
  import os
  from typing import Any, ClassVar, Dict, Iterable, List, Optional, Type, TypeVar, Union
  import uuid
  from etils import epath
  from tensorflow_datasets.core.utils import type_utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import array_record_module
  from tensorflow_datasets.core.utils.lazy_imports_utils import pyarrow
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 2 for calling the FileFormat obj's underlying member method code with example usage: obj.from_value(cls, file_format) and returns: cls