code: def bad_var_pos_message(var_name, var_type, expected_type):
      return 'Variable "{}" of type "{}" used in position expecting type "{}".'.format(
          var_name, var_type, expected_type
      )
  
file_path: wandb/wandb/vendor/graphql-core-1.1/wandb_graphql/validation/rules/variables_in_allowed_position.py
imports: from ...error import GraphQLError
  from ...type.definition import GraphQLNonNull
  from ...utils.type_comparators import is_type_sub_type_of
  from ...utils.type_from_ast import type_from_ast
  from .base import ValidationRule
label_desc: Use image node_id 6 for calling the VariablesInAllowedPosition obj's underlying member method code with example usage: obj.bad_var_pos_message(var_name, var_type, expected_type) and returns: str