<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def format(keys, value, _type, prefix=""):
 """ General format function. {'example.format': '2|T'} {'example.format31': '2|T', 'example.format37': '2|T'} {'prefix.example.format': '2|T'} """

        data = {}
        value = "{0}|{1}".format(value, _type)
        # TODO: Allow any iterable except strings
        if not isinstance(keys, (list, tuple)):
            keys = [keys]
        for key in keys:
            data[prefix + key] = value
        return data