code: def load_cfg_from_json(json_file: Union[str, os.PathLike]):
      with open(json_file, "r", encoding="utf-8") as reader:
          text = reader.read()
      return json.loads(text)
  
imports: import hashlib
  import json
  import logging
  import os
  from functools import partial
  from pathlib import Path
  from tempfile import TemporaryDirectory
  from typing import Iterable, Optional, Union
  import torch
  from torch.hub import HASH_REGEX, download_url_to_file, urlparse
  from timm import __version__
  from timm.models._pretrained import filter_pretrained_cfg
label_desc: Use image node_id 6 for calling a global function with example usage: load_cfg_from_json(json_file) and returns: json