code: def load_yaml_ordered(
      stream, Loader=yaml.Loader, object_pairs_hook=OrderedDict
  ):
      """
      Load function with keeping the order of dictionaries.
      """
  
      class OrderedLoader(Loader):
          pass
  
      def construct_mapping(loader, node):
          loader.flatten_mapping(node)
          return object_pairs_hook(loader.construct_pairs(node))
  
      OrderedLoader.add_constructor(
          yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG,
          construct_mapping,
      )
      return yaml.load(stream, OrderedLoader)
  
imports: import pickle
  import zlib
  from collections import OrderedDict
  from os.path import abspath, join, dirname, expanduser
  import glob
  import os
  import yaml
  import certifi
  import ssl
  from nnabla.utils import nnabla_pb2
  from nnabla.logger import logger
label_desc: Use image node_id 11 for calling a global function with example usage: load_yaml_ordered(stream, Loader, object_pairs_hook) and returns: yaml, object_pairs_hook