code: def checkout(self, ref, cb=None):
          
          if self.is_api:
              return self._checkout_api(ref, cb=cb)
          else:
              return self._checkout_fs(ref, cb=cb)
docs: Checkout a bundle from the remote. Returns a file-like object