code: def _type_to_str(self, type):
          
          for key, val in self.TYPE_NAMES.items():
              if key == type:
                  return val
docs: :param type:
          :type type: int
          :return:
          :rtype: