def get_mig(gce, name, zone):
 try:
  return gce.ex_get_instancegroupmanager(name=name, zone=zone)
 except ResourceNotFoundError:
  return None

def get_mig ( gce , name , zone ) : try : return gce . ex_get_instancegroupmanager ( name = name , zone = zone ) except ResourceNotFoundError : return None
get a managed instance group from gce .