code: def test_split_crops(
      crops, max_ratio, target_ratio, dilation, channels_last, num_crops
  ):
      new_crops, crop_map, should_remap = split_crops(
          crops, max_ratio, target_ratio, dilation, channels_last
      )
      assert len(new_crops) == num_crops
      assert len(crop_map) == len(crops)
      assert should_remap == (len(crops) != len(new_crops))
  
imports: import numpy
  import pytest
  from doctr.models.recognition.predictor._utils import remap_preds, split_crops
label_desc: Use image node_id 1 for calling a global function with example usage: test_split_crops(crops, max_ratio, target_ratio, dilation, channels_last, num_crops) without return types