code: def complete_list_value(
      exe_context, return_type, field_asts, info, result
  ):
      """
      Complete a list value by completing each item in the list with the inner type
      """
      assert isinstance(result, Iterable), (
          "User Error: expected iterable, but did not find one "
          + "for field {}.{}."
      ).format(info.parent_type, info.field_name)
  
      item_type = return_type.of_type
      completed_results = []
      contains_promise = False
      for item in result:
          completed_item = complete_value_catching_error(
              exe_context, item_type, field_asts, info, item
          )
          if not contains_promise and is_thenable(completed_item):
              contains_promise = True
  
          completed_results.append(completed_item)
  
      return (
          Promise.all(completed_results)
          if contains_promise
          else completed_results
      )
  
imports: import collections
  from collections.abc import Iterable
  import functools
  import logging
  import sys
  from wandb_promise import Promise, promise_for_dict, is_thenable
  from ..error import GraphQLError, GraphQLLocatedError
  from ..pyutils.default_ordered_dict import DefaultOrderedDict
  from ..pyutils.ordereddict import OrderedDict
  from ..type import GraphQLEnumType, GraphQLInterfaceType, GraphQLList, GraphQLNonNull, GraphQLObjectType, GraphQLScalarType, GraphQLSchema, GraphQLUnionType
  from .base import ExecutionContext, ExecutionResult, ResolveInfo, Undefined, collect_fields, default_resolve_fn, get_field_def, get_operation_root_type
  from .executors.sync import SyncExecutor
  from .experimental.executor import execute
  from .middleware import MiddlewareManager
label_desc: Use image node_id 9 for calling a global function with example usage: complete_list_value(exe_context, return_type, field_asts, info, result) and returns: unknown