code: def test_shape_batch(self, device):
      inp = torch.ones(16, 1, 32, 32, device=device)
      hardnet = HardNet8().to(device)
      out = hardnet(inp)
      assert out.shape == (16, 128)
  
file_path: kornia/test/feature/test_hardnet.py
imports: import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia.testing
  from kornia.feature import HardNet, HardNet8
  from kornia.testing import assert_close
label_desc: Use image node_id 2 for calling the TestHardNet8 obj's underlying member method code with example usage: obj.test_shape_batch(device) without return types