code: def _encode_image(
      image_data: bytes,
  ) -> str:
      base64_str = base64.b64encode(image_data).decode()
      return f"data:image;base64,{base64_str}"
  
file_path: dvc/dvc/render/converter/image.py
imports: import base64
  import os
  from typing import TYPE_CHECKING, Any, Dict, List, Tuple
  from dvc.render import FILENAME, REVISION, SRC
  from .None import Converter
label_desc: Use image node_id 2 for calling the ImageConverter obj's underlying member method code with example usage: obj._encode_image(image_data) and returns: str, base64_str