code: def test_clamp_box_to_image_bounds_and_round(self):
      bbox = torch.LongTensor([0, 1, 10, 12])
      image_size = (5, 6)
      expected_clamped_bbox = torch.LongTensor(
          [0, 1, image_size[1], image_size[0]]
      )
      clamped_bbox = clamp_box_to_image_bounds_and_round(
          bbox, image_size
      )
      self.assertClose(clamped_bbox, expected_clamped_bbox)
  
file_path: pytorch3d/tests/implicitron/test_bbox.py
imports: import unittest
  import numpy
  import torch
  from pytorch3d.implicitron.dataset.utils import bbox_xywh_to_xyxy, bbox_xyxy_to_xywh, clamp_box_to_image_bounds_and_round, crop_around_box, get_1d_bounds, get_bbox_from_mask, get_clamp_bbox, rescale_bbox, resize_image
  from tests.common_testing import TestCaseMixin
label_desc: Use image node_id 6 for calling the TestBBox obj's underlying member method code with example usage: obj.test_clamp_box_to_image_bounds_and_round() without return types