code: def __init__(
      self,
      path: str,
      flags: int,
      examples_dir: str,
      extensions: list[str] = [],
  ) -> None:
      self.path = normpath(path)
      self.flags = flags
      self.examples_dir = examples_dir
      self.extensions = extensions
      self._diff_ref = None
      self.pixels = 0
      self._has_ref = None
  
imports: from __future__ import annotations
  import logging
  import os
  from base64 import b64decode
  from glob import iglob
  from os.path import basename, dirname, exists, isdir, join, normpath, pardir, relpath, splitext
  from pathlib import Path
  from typing import TYPE_CHECKING, Literal, Union
  import yaml
label_desc: Use image node_id 1 to create a new Example object  with example: obj = Example(path, flags, examples_dir, extensions)