def __contains__(self, torch_name):
        """Returns whether or not the torch var exist in context."""
        for idx in reversed(range(len(self._current_graph))):
            current_graph = self._current_graph[idx]
            if torch_name in current_graph:
                return True
        return False
Returns whether or not the torch var exist in context.
coremltools/converters/mil/frontend/torch/converter.py