def isInSet(self, pObject='', pSet=''):			
		if not isinstance(pSet, FBSet):
			moBuLogger.error("'%s' is not of type(set)" % pSet)
			return False
		if not pObject:
			moBuLogger.error("No pObject passed.")
		
		# check if pObject is str
		if isinstance(pObject, str):
			#check directly
			for item in pSet.Items:
				if item.Name == pObject:
					moBuLogger.info("Found '%s' in '%s'" % (item.Name, pSet.Name))
					return True
		else:
			#check directly
			for item in pSet.Items:
				if item == pObject:
					moBuLogger.info("Found '%s' in '%s'" % (item.Name, pSet.Name))
					return True 
		
		# not found
		if isinstance(pObject, str):
			pObjectName = pObject
		else:
			pObjectName = pObject.LongName
		moBuLogger.info("Did not find '%s' in '%s'" % (pObjectName, pSet.Name))
		return False
see if object is in set
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/moBu/core/moBuSets.py/MoBuSets.isInSet