def findImage(name, tag="latest"):
  result =  docker.Client().images(name=name)

  for image in result:
    if image['Tag'] == tag:
      return image['Id']
  return None
dataset/ETHPy150Open toscanini/maestro/maestro/utils.py/findImage/original