code: def _create_itk_obj(array, affine):
      itk_img = deepcopy(array)
      itk_img = convert_data_type(itk_img, np.ndarray)[0]
      itk_obj = ITKWriter.create_backend_obj(
          itk_img, channel_dim=None, affine=affine, affine_lps=True
      )
      return itk_obj
  
file_path: MONAI/tests/test_meta_affine.py
imports: from __future__ import annotations
  import os
  import unittest
  from copy import deepcopy
  import numpy
  from parameterized import parameterized
  from monai.data.image_writer import ITKWriter
  from monai.transforms import Compose, EnsureChannelFirst, EnsureChannelFirstd, LoadImage, LoadImaged, MapTransform, Orientation, Orientationd, Randomizable, Spacing, Spacingd, Transform
  from monai.utils import convert_data_type, optional_import
  from tests.utils import assert_allclose, download_url_or_skip_test, testing_data_config
label_desc: Use image node_id 1 for calling a global function with example usage: _create_itk_obj(array, affine) and returns: itk_obj