code: def construct_yaml_omap(self, node):
      # Note: we do not check for duplicate keys, because it's too
      # CPU-expensive.
      omap = []
      yield omap
      if not isinstance(node, SequenceNode):
          raise ConstructorError(
              "while constructing an ordered map",
              node.start_mark,
              "expected a sequence, but found %s" % node.id,
              node.start_mark,
          )
      for subnode in node.value:
          if not isinstance(subnode, MappingNode):
              raise ConstructorError(
                  "while constructing an ordered map",
                  node.start_mark,
                  "expected a mapping of length 1, but found %s"
                  % subnode.id,
                  subnode.start_mark,
              )
          if len(subnode.value) != 1:
              raise ConstructorError(
                  "while constructing an ordered map",
                  node.start_mark,
                  "expected a single mapping item, but found %d items"
                  % len(subnode.value),
                  subnode.start_mark,
              )
          key_node, value_node = subnode.value[0]
          key = self.construct_object(key_node)
          value = self.construct_object(value_node)
          omap.append((key, value))
  
imports: from .error import *
  from .nodes import *
  import collections.abc, datetime, base64, binascii, re, sys, types
label_desc: Use image node_id 10 for calling the SafeConstructor obj's underlying member method code with example usage: obj.construct_yaml_omap(node) without return types