def with_unit(number, unit=None):
if isinstance(number, tuple):<EOL><INDENT>number, unit = number<EOL><DEDENT>if number == <NUM_LIT:0>:<EOL><INDENT>return '<STR_LIT:0>'<EOL><DEDENT>if unit:<EOL><INDENT>number = str(number)<EOL>if number.startswith('<STR_LIT:.>'):<EOL><INDENT>number = '<STR_LIT:0>' + number<EOL><DEDENT>return "<STR_LIT>" % (number, unit)<EOL><DEDENT>return number if isinstance(number, string_types) else str(number)<EOL>
Return number with unit
    args:
        number (mixed): Number
        unit (str): Unit
    returns:
        str