parameters: (image_dir: str, image_url: str = DEFAULT_IMAGE_URL)
return_statement: return images
docstring: Gets image.
  
      Args:
          image_dir (str): Image filename
          image_url (str): Image url
  
      Returns:
          str: Output image filename
docstring_summary: Gets image.
docstring_tokens: Gets image .
function: def get_images(image_dir: str, image_url: str = DEFAULT_IMAGE_URL):
      """Gets image.
  
      Args:
          image_dir (str): Image filename
          image_url (str): Image url
  
      Returns:
          str: Output image filename
      """
      images = list_images(image_dir)
      if not images and image_url is not None:
          print("No images found. Downloading ...")
          try:
              images = [download_file(image_url)]
          except RuntimeError:
              print("Unable to download file ({0}).".format(image_url))
  
      if not images:
          raise RuntimeError("Unable to provide images.")
  
      return images
function_tokens: def get_images ( image_dir : str , image_url : str = DEFAULT_IMAGE_URL ) : images = list_images ( image_dir ) if not images and image_url is not None : print ( "No images found. Downloading ..." ) try : images = [ download_file ( image_url ) ] except RuntimeError : print ( "Unable to download file ({0})." . format ( image_url ) ) if not images : raise RuntimeError ( "Unable to provide images." ) return images