code: def get_num_raw_domains(ordering):
      """Returns the number of raw domains."""
      num_raw_domains = len(ordering)
      for elem in ordering:
          if hasattr(elem, "__iter__"):
              num_raw_domains += len(elem) - 1
      return num_raw_domains
  
imports: from __future__ import print_function
  from argparse import Namespace
  from copy import deepcopy
  import numpy
  from warnings import warn
  from .None import domains
  from ..parse.config_parser import config_parser
  from ..utils.general_utils import flatten_list_of_objects_and_iterables, get_original_order_from_reordered_list, transpose_list_of_lists
  from ..utils.oper_utils import random_sample_from_euclidean_domain, random_sample_from_discrete_euclidean_domain, random_sample_from_integral_domain, random_sample_from_prod_discrete_domain
label_desc: Use image node_id 9 for calling a global function with example usage: get_num_raw_domains(ordering) and returns: num_raw_domains