code: def test_lambda(self):
      image_url_dir = current_file_dir + "/images"
      sf = image_analysis.load_images(image_url_dir)
      sa = sf["image"]
  
      # Lambda returning self
      sa_self = sa.apply(lambda x: x)
      for i in range(len(sa_self)):
          self.assertEqual(sa[i], sa_self[i])
  
      # Lambda returning width
      sa_width = sa.apply(lambda x: x.width)
      for i in range(len(sa_width)):
          self.assertEqual(sa[i].width, sa_width[i])
  
      # Lambda returning height
      sa_height = sa.apply(lambda x: x.height)
      for i in range(len(sa_height)):
          self.assertEqual(sa[i].height, sa_height[i])
  
      # Lambda returning channels
      sa_channels = sa.apply(lambda x: x.channels)
      for i in range(len(sa_channels)):
          self.assertEqual(sa[i].channels, sa_channels[i])
  
      # Lambda returning resized self
      sa_resized = sa.apply(
          lambda x: image_analysis.resize(
              x, int(x.width / 2), int(x.height / 2)
          )
      )
      for i in range(len(sa_resized)):
          self.assertEqual(sa_resized[i].width, int(sa[i].width / 2))
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import array
  import unittest
  from PIL import Image
  import os
  from ..data_structures import image
  from ..None import SArray
  from ..toolkits.image_analysis import image_analysis
  from ..toolkits._main import ToolkitError
  from .._deps import numpy, HAS_NUMPY
label_desc: Use image node_id 10 for calling the ImageClassTest obj's underlying member method code with example usage: obj.test_lambda() without return types