code: def create_object_graph(name,
                          debug=False,
                          testing=False,
                          import_name=None,
                          root_path=None,
                          loader=load_from_environ,
                          registry=_registry,
                          profiler=None,
                          cache=None):
      
      metadata = Metadata(
          name=name,
          debug=debug,
          testing=testing,
          import_name=import_name,
          root_path=root_path,
      )
  
      defaults = registry.defaults
      config = configure(defaults, metadata, loader)
  
      if profiler is None:
          profiler = NoopProfiler()
  
      if cache is None or isinstance(cache, str):
          cache = create_cache(cache)
  
      return ObjectGraph(
          metadata=metadata,
          config=config,
          registry=registry,
          profiler=profiler,
          cache=cache,
          loader=loader,
      )
docs: Create a new object graph.
  
      :param name: the name of the microservice
      :param debug: is development debugging enabled?
      :param testing: is unit testing enabled?
      :param loader: the configuration loader to use
      :param registry: the registry to use (defaults to the global)