def import_model(self, source):
if not hasattr(source, '<STR_LIT>'):  <EOL><INDENT>with open(self._resolve_source(source), '<STR_LIT:r>') as f:<EOL><INDENT>return self._import(f)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return self._import(source)<EOL><DEDENT>
Import and return model instance.