code: def get_infos(all_infos, d_name):
      """
      Wrapper for mutliprocess-loading of dataset infos
  
      :param all_infos: multiprocess-safe dictionary
      :param d_name: dataset name
      """
      d_name_bytes = d_name.encode("utf-8")
      d_name_hash = sha256(d_name_bytes)
      foldername = os.path.join(
          DATASET_INFOS_CACHE_DIR, d_name_hash.hexdigest()
      )
      if os.path.isdir(foldername):
          infos_dict = DatasetInfosDict.from_directory(foldername)
      else:
          infos = get_dataset_infos(d_name)
          infos_dict = DatasetInfosDict(infos)
          os.makedirs(foldername)
          infos_dict.write_to_directory(foldername)
      all_infos[d_name] = infos_dict
  
imports: import argparse
  import functools
  import multiprocessing
  import os
  import textwrap
  from hashlib import sha256
  from multiprocessing import Manager, Pool
  import pandas
  import plotly.express
  import streamlit
  from datasets import get_dataset_infos
  from datasets.info import DatasetInfosDict
  from pygments import highlight
  from pygments.formatters import HtmlFormatter
  from pygments.lexers import DjangoLexer
  from promptsource import DEFAULT_PROMPTSOURCE_CACHE_HOME
  from promptsource.session import _get_state
  from promptsource.templates import INCLUDED_USERS, LANGUAGES, METRICS, DatasetTemplates, Template, TemplateCollection
  from promptsource.utils import get_dataset, get_dataset_confs, list_datasets, removeHyphen, renameDatasetColumn, render_features
label_desc: Use image node_id 1 for calling a global function with example usage: get_infos(all_infos, d_name) without return types