def gid(groupname):
  """Return the gid associated with group groupname"""
  try:
    return execute((groupname) % "getent group %s").split(':')[2]
  except:
    return None
dataset/ETHPy150Open NumentaCorp/agamotto/agamotto/group.py/gid/swapped operands of `%`