code: def test_apply_top_to_sql_limit(
      limit: int,
      original: str,
      expected: str,
  ) -> None:
      """
      Ensure limits are applied to the query correctly
      """
      from superset.db_engine_specs.teradata import TeradataEngineSpec
  
      assert (
          TeradataEngineSpec.apply_top_to_sql(original, limit)
          == expected
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_apply_top_to_sql_limit(limit, original, expected) without return types