code: def generate_identity_table(self, channels, size):
      if isinstance(size, tuple):
          size1D, size2D, size3D = size
      else:
          size1D, size2D, size3D = (size, size, size)
  
      table = [
          [
              r / (size1D - 1) if size1D != 1 else 0,
              g / (size2D - 1) if size2D != 1 else 0,
              b / (size3D - 1) if size3D != 1 else 0,
              r / (size1D - 1) if size1D != 1 else 0,
              g / (size2D - 1) if size2D != 1 else 0,
          ][:channels]
          for b in range(size3D)
          for g in range(size2D)
          for r in range(size1D)
      ]
      return (
          channels,
          size1D,
          size2D,
          size3D,
          [item for sublist in table for item in sublist],
      )
  
imports: from array import array
  import pytest
  from PIL import Image, ImageFilter
  from .helper import assert_image_equal
label_desc: Use image node_id 1 for calling the TestColorLut3DCoreAPI obj's underlying member method code with example usage: obj.generate_identity_table(channels, size) and returns: channels,  size1D,  size2D,  size3D,  unknown