class_docstr: Transform to convert 1-D bbox label to 2-D as in shape Nx5.
  
  Parameters
  ----------
  coord_normalized : bool
      Whether the coordinates(x0, y0, x1, y1) are normalized to (0, 1).
docstr: transform 1-D bbox label to Nx5 ndarray
docstr_tok: ["transform","1-D","bbox","label","to","Nx5","ndarray"]
code: def forward(self, img, label):
      """transform 1-D bbox label to Nx5 ndarray"""
      if self._coord_normalized:
          height = img.shape[0]
          width = img.shape[1]
      else:
          height = width = None
      if not isinstance(label, np.ndarray):
          label = label.asnumpy()
      label = label.flatten()
      header_len = int(label[0])  # label header
      label_width = int(
          label[1]
      )  # the label width for each object, >= 5
      if label_width < 5:
          raise ValueError(
              "Label info for each object should >= 5, given {}".format(
                  label_width
              )
          )
      min_len = header_len + 5
      if len(label) < min_len:
          raise ValueError(
              "Expected label length >= {}, got {}".format(
                  min_len, len(label)
              )
          )
      if (len(label) - header_len) % label_width:
          raise ValueError(
              "Broken label of size {}, cannot reshape into (N, {}) "
              "if header length {} is excluded".format(
                  len(label), label_width, header_len
              )
          )
      bbox_label = label[header_len:].reshape(-1, label_width)
      # swap columns, requires [xmin-ymin-xmax-ymax-id-extra0-extra1-xxx]
      ids = bbox_label[:, 0].copy()
      bbox_label[:, :4] = bbox_label[:, 1:5]
      bbox_label[:, 4] = ids
      # restore to absolute coordinates
      if width is not None:
          bbox_label[:, (0, 2)] *= width
      if height is not None:
          bbox_label[:, (1, 3)] *= height
      array_fn = _mx_np.array if is_np_array() else nd.array
      return img, array_fn(bbox_label)
  
imports: import logging
  import numpy
  from .....None import ndarray
  from .....util import is_np_array
  from .....None import numpy
  from ....nn import HybridSequential, Sequential, HybridBlock, Block
  from ....data.vision import transforms
  from ....data import DataLoader
  from .transforms import bbox
label_desc: Use image node_id 2 for calling the BboxLabelTransform obj's underlying member method code with example usage: obj.forward(img, label) and returns: img,  array_fn