code: def test_upload_info_from_bytes(self):
      upload_info = UploadInfo.from_bytes(self.content)
  
      self.assertEqual(upload_info.sample, self.sample)
      self.assertEqual(upload_info.size, self.size)
      self.assertEqual(upload_info.sha256, self.sha)
  
file_path: huggingface_hub/tests/test_lfs.py
imports: import os
  import unittest
  from hashlib import sha256
  from io import BytesIO
  from huggingface_hub.lfs import SliceFileObj, UploadInfo
  from huggingface_hub.utils import SoftTemporaryDirectory
label_desc: Use image node_id 3 for calling the TestUploadInfo obj's underlying member method code with example usage: obj.test_upload_info_from_bytes() without return types