code: def _create_attr_comparator(arg):
      r"""Create an attribute comparator object.
  
      Args:
          arg (string):
              Same as the `attr_comparator` argument to the constructor of
              :class:`MatchingModel`.
      """
      assert arg is not None
      module = dm.modules._merge_module(arg)
      module.expect_signature("[AxB, AxB] -> [AxC]")
      return module
  
imports: import copy
  import logging
  from collections import Mapping
  import dill
  import six
  import deepmatcher
  import torch
  import torch.nn
  from .None import _utils
  from ..data import MatchingDataset, MatchingIterator
  from ..runner import Runner
  from ..utils import Bunch, tally_parameters
label_desc: Use image node_id 1 for calling a global function with example usage: _create_attr_comparator(arg) and returns: module