code: def base_name_from_image(image):
      
      m = re.match("^(.+/)?([^:/]+)(:[^:]+)?$", image)
      algo_name = m.group(2) if m else image
      return algo_name
docs: Extract the base name of the image to use as the 'algorithm name' for the job.
  
      Args:
          image (str): Image name.
  
      Returns:
          str: Algorithm name, as extracted from the image name.