code: def format_atomic(value):
      
      # Perform escaping
      if isinstance(value, str):
          if any(r in value for r in record.RESERVED_CHARS):
              for k, v in record.ESCAPE_MAPPING:
                  value = value.replace(k, v)
      # String-format the given value
      if value is None:
          return "."
      else:
          return str(value)
docs: Format atomic value
  
      This function also takes care of escaping the value in case one of the
      reserved characters occurs in the value.