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