code: def format_data(data):
      
      if data is None:
          return None
      return u":".join([u"{:02x}".format(ord(c)) for c in data])
docs: Format bytes for printing
  
      :param data: Bytes
      :type data: None | bytearray | str
      :return: Printable version
      :rtype: unicode