def getOperationName(id: str):
if isinstance(id, str):<EOL><INDENT>assert id in operations.keys(), "<STR_LIT>".format(id)<EOL>return id<EOL><DEDENT>elif isinstance(id, int):<EOL><INDENT>return getOperationNameForId(id)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError<EOL><DEDENT>
This method returns the name representation of an operation given
        its value as used in the API