code: def test_decode_base64_to_binary():
      binary = utils.decode_base64_to_binary(
          deepcopy(media_data.BASE64_IMAGE)
      )
      assert deepcopy(media_data.BINARY_IMAGE) == binary
  
      b64_img_without_header = deepcopy(media_data.BASE64_IMAGE).split(
          ","
      )[1]
      binary_without_header, extension = utils.decode_base64_to_binary(
          b64_img_without_header
      )
  
      assert binary[0] == binary_without_header
      assert extension is None
  
imports: import importlib.resources
  import json
  import os
  import tempfile
  from copy import deepcopy
  from pathlib import Path
  from unittest.mock import MagicMock, patch
  import httpx
  import pytest
  from huggingface_hub import HfFolder
  from gradio_client import media_data, utils
label_desc: Use image node_id 5 for calling a global function with example usage: test_decode_base64_to_binary() without return types