Formats a value based on the provided configuration.
The value to format
Configuration options for formatting
The formatted value or the original value if the format is not specified
Formats a value based on the provided configuration.