code: def type_from_ast(schema, input_type_ast):
      if isinstance(input_type_ast, ast.ListType):
          inner_type = type_from_ast(schema, input_type_ast.type)
          if inner_type:
              return GraphQLList(inner_type)
          else:
              return None
  
      if isinstance(input_type_ast, ast.NonNullType):
          inner_type = type_from_ast(schema, input_type_ast.type)
          if inner_type:
              return GraphQLNonNull(inner_type)
          else:
              return None
  
      assert isinstance(
          input_type_ast, ast.NamedType
      ), "Must be a type name."
      return schema.get_type(input_type_ast.name.value)
  
label_desc: Use image node_id 1 for calling a global function with example usage: type_from_ast(schema, input_type_ast) and returns: schema, GraphQLList, None, GraphQLNonNull, None