code: def _compute_offsets(inputs):
      """
      Compute offsets of real inputs into the concatenated Gaussian dims.
      This ignores all int inputs.
  
      :param OrderedDict inputs: A schema mapping variable name to domain.
      :return: a pair ``(offsets, total)``, where ``offsets`` is an OrderedDict
          mapping input name to integer offset, and ``total`` is the total event
          size.
      :rtype: tuple
      """
      assert isinstance(inputs, OrderedDict)
      offsets = OrderedDict()
      total = 0
      for key, domain in inputs.items():
          if domain.dtype == "real":
              offsets[key] = total
              total += domain.num_elements
      return offsets, total
  
imports: import math
  from collections import OrderedDict, defaultdict
  from contextlib import contextmanager
  from functools import reduce
  import funsor.ops
  from funsor.affine import affine_inputs, extract_affine, is_affine
  from funsor.delta import Delta
  from funsor.domains import Real, Reals
  from funsor.interpretations import compress_gaussians
  from funsor.ops import AddOp, SubOp
  from funsor.tensor import Tensor, align_tensor, align_tensors
  from funsor.terms import Binary, Funsor, FunsorMeta, Number, Slice, Subs, Variable, eager, reflect
  from funsor.util import broadcast_shape, get_tracing_state, lazy_property
label_desc: Use image node_id 10 for calling a global function with example usage: _compute_offsets(inputs) and returns: offsets,  total