code: def load_mapper_from_json(directory_path, file_name):
      """Load a mapper from a .json file.
  
      Loads a mapper for a graph serialized in a .json file as:
  
      .. code-block:: text
  
         subj1: human_labeled_subj1
         relationX: human_labeled_relationX
         obj1: human_labeled_obj1
         human_labeled_relationX: description_of_relationX
  
         ...
  
      Parameters
      ----------
  
      directory_path: str
          Folder where the input file is stored.
      file_name: str
          File name.
  
      Returns
      -------
  
      mapper: dict
          Dictionary of mappings between graph entities and predicates and human-readable version of them.
  
      Example
      -------
  
      >>> from ampligraph.datasets import load_mapper_from_json
      >>> mapper = load_mapper_from_json('folder', 'mapper.json')
      >>> mapper['/m/234fsd/']
      'Dog'
      """
  
      logger.debug("Loading mapper from {}.".format(file_name))
      with open(os.path.join(directory_path, file_name)) as f:
          mapper = json.loads(f.read())
      return mapper
  
imports: import hashlib
  import json
  import logging
  import os
  import urllib
  import zipfile
  from collections import namedtuple
  from pathlib import Path
  import numpy
  import pandas
label_desc: Use image node_id 10 for calling a global function with example usage: load_mapper_from_json(directory_path, file_name) and returns: mapper