text: from core.himesis import Himesis, HimesisPreConditionPatternLHS
  import uuid
  
  class HMM2_then1_CompleteLHS(HimesisPreConditionPatternLHS):
  	def __init__(self):
  		"""
  		Creates the himesis graph representing the AToM3 model HMM2_then1_CompleteLHS
  		"""
  		# Flag this instance as compiled now
  		self.is_compiled = True
  
  		super(HMM2_then1_CompleteLHS, self).__init__(name='HMM2_then1_CompleteLHS', num_nodes=0, edges=[])
  
  		# Add the edges
  		self.add_edges([])
  
  		# Set the graph attributes
  		self["mm__"] = ['MT_pre__FamiliesToPersonsMM', 'MoTifRule']
  		self["MT_constraint__"] = """return True"""
  		self["name"] = """"""
  		self["GUID__"] = uuid.uuid3(uuid.NAMESPACE_DNS,'HMM2_then1_CompleteLHS')
  		self["equations"] = []
  		# Set the node attributes
  
  		# apply class LocalDef(0.10.a.0LocalDef) node
  		self.add_node()
  		self.vs[0]["MT_pre__attr1"] = """return True"""
  		self.vs[0]["MT_label__"] = """1"""
  		self.vs[0]["mm__"] = """MT_pre__LocalDef"""
  		self.vs[0]["GUID__"] = uuid.uuid3(uuid.NAMESPACE_DNS,'0.10.a.0LocalDef')
  
  		# apply class Proc(0.10.a.1Proc) node
  		self.add_node()
  		self.vs[1]["MT_pre__attr1"] = """return True"""
  		self.vs[1]["MT_label__"] = """2"""
  		self.vs[1]["mm__"] = """MT_pre__Proc"""
  		self.vs[1]["GUID__"] = uuid.uuid3(uuid.NAMESPACE_DNS,'0.10.a.1Proc')
  
  		# apply association LocalDef--p-->Procnode
  		self.add_node()
  		self.vs[2]["MT_pre__attr1"] = """return attr_value == "p" """
  		self.vs[2]["MT_label__"] = """3"""
  		self.vs[2]["mm__"] = """MT_pre__directLink_T"""
  		self.vs[2]["GUID__"] = uuid.uuid3(uuid.NAMESPACE_DNS,'0.10.a.0LocalDefassoc20.10.a.1Proc')
  
  		self["equations"].append(((0,'pivot'),('constant','LocalDef454c0025LocalDef')))
  
  
  		# Add the edges
  		self.add_edges([
  			(0,2), # apply class LocalDef(0.10.a.0LocalDef) -> association p
  			(2,1), # association Proc -> apply class Proc(0.10.a.1Proc)
  		])
  
  
  	# define evaluation methods for each match class.
  
  	# define evaluation methods for each apply class.
  
  	def eval_attr11(self, attr_value, this):
  		return True
  
  	def eval_attr12(self, attr_value, this):
  		return True
  
  		# define evaluation methods for each match association.
  
  		# define evaluation methods for each apply association.
  
  	def eval_attr13(self, attr_value, this):
  		return attr_value == "p"
  
  	def constraint(self, PreNode, graph):
  		return True
  
  