def maybe_resolve(object, resolve):
if isinstance(object, dict) and object.get('<STR_LIT>'):<EOL><INDENT>return resolve(object['<STR_LIT>'])<EOL><DEDENT>return object<EOL>
Call `resolve` on the `object`'s `$ref` value if it has one.

:param object: An object.
:param resolve: A resolving function.
:return: An object, or some other object! :sparkles: