<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def execute(self, conn, name='', transaction = False):
 """ returns id for a given physics group name """

        binds={}
        if name:
            op = ('=', 'like')['%' in name]
            sql = self.sql + "  WHERE pg.physics_group_name %s :physicsgroup" % (op)
            binds = {"physicsgroup": name}
        else:
            sql = self.sql
        self.logger.debug(sql)    
        result = self.dbi.processData(sql, binds, conn, transaction)
        plist = self.formatDict(result)
        self.logger.debug(plist)
	if len(plist) < 1: return []
        return plist