code: def test_remap_preds(preds, crop_map, dilation, pred):
      preds = remap_preds(preds, crop_map, dilation)
      assert len(preds) == len(pred)
      assert preds == pred
      assert all(isinstance(pred, tuple) for pred in preds)
      assert all(
          isinstance(pred[0], str) and isinstance(pred[1], float)
          for pred in preds
      )
  
imports: import numpy
  import pytest
  from doctr.models.recognition.predictor._utils import remap_preds, split_crops
label_desc: Use image node_id 2 for calling a global function with example usage: test_remap_preds(preds, crop_map, dilation, pred) without return types