code: def test_batch_size_indivisible():
      model = nn.Sequential(nn.Linear(1, 1))
      model = Pipe(model, balance=[1], devices=["cpu"], chunks=4)
  
      with pytest.warns(None) as record:
          model(torch.rand(7, 1))
  
      # Indivisible batch size is legal.
      assert not record
  
imports: from collections import OrderedDict
  from copy import deepcopy
  import time
  import pytest
  import torch
  from torch import nn
  from fairscale.nn.pipe import Pipe
label_desc: Use image node_id 8 for calling a global function with example usage: test_batch_size_indivisible() without return types