code: def test_get_1d_bounds(self):
      array = [0, 1, 2]
      bounds = get_1d_bounds(array)
      # make nonzero 1d bounds of image
      self.assertClose(bounds, [1, 3])
  
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 9 for calling the TestBBox obj's underlying member method code with example usage: obj.test_get_1d_bounds() without return types