def gtype ( n ) : t = type ( n ) . __name__ return str ( t ) if t != 'Literal' else 'Literal, {}' . format ( n . language )
how to display the data type python
Return the a string with the data type of a value for Graph data
def gtype(n):
    """
    Return the a string with the data type of a value, for Graph data
    """
    t = type(n).__name__
    return str(t) if t != 'Literal' else 'Literal, {}'.format(n.language)