class_docstr: Holds information about one version of a revived type.
docstr: Checks if this object should load the SavedUserObject `proto`.
docstr_tok: ["Checks","if","this","object","should","load","the","SavedUserObject","`","proto","`","."]
code: def should_load(self, proto):
      """Checks if this object should load the SavedUserObject `proto`."""
      if proto.identifier != self.identifier:
          return False
      if self.version < proto.version.min_consumer:
          return False
      if proto.version.producer < self._min_producer_version:
          return False
      for bad_version in proto.version.bad_consumers:
          if self.version == bad_version:
              return False
      return True
  
file_path: tensorflow-upstream/tensorflow/python/saved_model/revived_types.py
imports: import operator
  from tensorflow.core.framework import versions_pb2
  from tensorflow.core.protobuf import saved_object_graph_pb2
  from tensorflow.python.trackable import data_structures
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 4 for calling the VersionedTypeRegistration obj's underlying member method code with example usage: obj.should_load(proto) and returns: True, False, False, False, False