code: def __init__(self, instance=None):
      self.functions = {}
      self.variables = {}
      self.global_resource = {}
  
      if isinstance(instance, NetworkEnsemble):
          self.functions = instance.functions
          self.variables = instance.variables
          self.global_resource = instance.global_resource
      elif instance is not None:
          raise ValueError(
              "Instance type {} not compatible with NetworkEnsemble".format(
                  type(instance)
              )
          )
  
imports: import copy
  from coremltools import _logger
  from coremltools.converters.mil.mil import types
  from .basic_graph_ops import check_connections, const_determined_nodes
  from .dot_visitor import DotVisitor
  from .naming_utils import escape_fn_name
label_desc: Use image node_id 1 to create a new NetworkEnsemble object  with example: obj = NetworkEnsemble(instance)