class_docstr: GrapplerItem.
docstr: Return a list of hard colocation constraints.
  
  All the nodes in a colocation tuple must be placed on the same device for
  the model to work.
  
  Returns:
    A list of colocation tuples.
code: def GetColocationGroups(self):
      """Return a list of hard colocation constraints.
  
      All the nodes in a colocation tuple must be placed on the same device for
      the model to work.
  
      Returns:
        A list of colocation tuples.
      """
      return tf_item.TF_GetColocationGroups(self.tf_item)
  
file_path: tensorflow/tensorflow/python/grappler/item.py
imports: from tensorflow.core.grappler.costs import op_performance_data_pb2
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.python.grappler import _pywrap_tf_item
label_desc: Use image node_id 4 for calling the Item obj's underlying member method code with example usage: obj.GetColocationGroups() and returns: tf_item