code: def test_balance_less_than_1():
      a = nn.Linear(1, 1)
      b = nn.Linear(1, 1)
  
      model = nn.Sequential(a, b)
  
      with pytest.raises(ValueError):
          Pipe(model, balance=[0, 2])
  
      with pytest.raises(ValueError):
          Pipe(model, balance=[-1, 3])
  
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 5 for calling a global function with example usage: test_balance_less_than_1() without return types