docs: def schema_from_context(context):
      """Determine which schema to use."""
      item_class = context.get('class')
      return (
          serializer_mapping[item_class] if item_class else BaseSchema,
          context.get('many', False)
      )