code: def test_public_attrs():
      class MyString:
          def __init__(self, value):
              self.value = value
  
          def __str__(self):
              return self.value
  
      model = nn.Sequential(nn.Linear(1, 1))
      pipe = Pipe(
          model,
          balance=(1,),
          devices=("cpu",),
          chunks=42.000,
          checkpoint=MyString("always"),
      )
  
      assert pipe.balance == [1]
      assert pipe.devices == [torch.device("cpu")]
      assert pipe.chunks == 42
      assert isinstance(pipe.chunks, int)
      assert pipe.checkpoint == "always"
      assert isinstance(pipe.checkpoint, str)
  
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 2 for calling a global function with example usage: test_public_attrs() and returns: self