code: def convert_gif(img_path):
      """Convert the gif image to png format.
  
      Args:
          img_path (str): The path to the gif image
      """
      img = Image.open(img_path)
      dst_path = img_path.replace("gif", "png")
      img.save(dst_path)
      os.remove(img_path)
      print(f"Convert {img_path} to {dst_path}")
  
file_path: mmocr/tools/dataset_converters/textdet/ic11_converter.py
imports: import argparse
  import os
  import os.path
  import mmcv
  import mmengine
  from PIL import Image
  from mmocr.utils import dump_ocr_data
label_desc: Use image node_id 1 for calling a global function with example usage: convert_gif(img_path) without return types