code: def test_ngram_mismsatch(synthetic_dataset):
      ngram1_fields = {
          -1: [
              "id",
          ],
          0: ["id", "image_png"],
      }
  
      ngram2_fields = {
          -1: ["id", "image_png"],
          0: [
              "id",
          ],
      }
  
      ts_field = "^id$"
  
      ngram1 = NGram(
          fields=ngram1_fields,
          delta_threshold=10,
          timestamp_field=ts_field,
      )
      ngram2 = NGram(
          fields=ngram2_fields,
          delta_threshold=10,
          timestamp_field=ts_field,
      )
  
      readers = [
          make_reader(
              synthetic_dataset.url,
              schema_fields=ngram1,
              workers_count=1,
          ),
          make_reader(
              synthetic_dataset.url,
              schema_fields=ngram2,
              workers_count=1,
          ),
      ]
  
      with pytest.raises(ValueError, match=".*ngram.*"):
          WeightedSamplingReader(readers, [0.5, 0.5])
  
imports: from __future__ import division
  import numpy
  import pytest
  import six
  import tensorflow.compat.v1
  from petastorm import make_reader
  from petastorm.ngram import NGram
  from petastorm.predicates import in_lambda
  from petastorm.pytorch import DataLoader
  from petastorm.test_util.reader_mock import ReaderMock
  from petastorm.tf_utils import tf_tensors, make_petastorm_dataset
  from petastorm.unischema import Unischema, UnischemaField
  from petastorm.weighted_sampling_reader import WeightedSamplingReader
  from petastorm.tests.test_tf_utils import create_tf_graph
label_desc: Use image node_id 10 for calling a global function with example usage: test_ngram_mismsatch(synthetic_dataset) without return types