def is_possible_temp(temp: str) -> bool:
for char in temp:<EOL><INDENT>if not (char.isdigit() or char == '<STR_LIT:M>'):<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return True<EOL>
Returns True if all characters are digits or 'M' (for minus)