def METHOD_NAME(self, graph_def):
    """Determines if a StatefulPartitionedCall op exists in the graph."""
    for node in graph_def.node:
        if node.op == "StatefulPartitionedCall":
            return True
    return False