code: def fmt_data(text, data_formating = None, data_type = None):
          
          if data_type:
              return DATA_TYPES[data_type](text)
          elif data_formating:
              return str(data_formating).format(text)
          return str(text)
docs: Format given text according to given data formating pattern or data type.