code: def test_query_context_series_limit(self):
      self.login(username="admin")
      payload = get_query_context("birth_names")
  
      payload["queries"][0]["timeseries_limit"] = 2
      payload["queries"][0]["timeseries_limit_metric"] = {
          "expressionType": "SIMPLE",
          "column": {
              "id": 334,
              "column_name": "gender",
              "filterable": True,
              "groupby": True,
              "is_dttm": False,
              "type": "VARCHAR(16)",
              "optionName": "_col_gender",
          },
          "aggregate": "COUNT_DISTINCT",
          "label": "COUNT_DISTINCT(gender)",
      }
      _ = ChartDataQueryContextSchema().load(payload)
  
file_path: superset/tests/integration_tests/charts/schema_tests.py
imports: from unittest import mock
  import pytest
  from marshmallow import ValidationError
  from tests.integration_tests.test_app import app
  from superset.charts.schemas import ChartDataQueryContextSchema
  from tests.integration_tests.base_tests import SupersetTestCase
  from tests.integration_tests.fixtures.birth_names_dashboard import load_birth_names_dashboard_with_slices, load_birth_names_data
  from tests.integration_tests.fixtures.query_context import get_query_context
label_desc: Use image node_id 3 for calling the TestSchema obj's underlying member method code with example usage: obj.test_query_context_series_limit() without return types