code: def test_expensive_packages_not_imported_in_lambda(self):
      import turicreate as tc
  
      expensive_packages = ["mxnet", "resampy"]
  
      # we don't want mxnet to be imported in the worker code
      def lambda_func(x):
          import sys
  
          if x >= 1000:
              for p in expensive_packages:
                  assert p not in sys.modules
  
          return x + 1
  
      x = tc.SArray(range(2000)).apply(lambda_func)
  
      self.assertTrue((x == tc.SArray(range(1, 2001))).all())
  
file_path: turicreate/src/python/turicreate/test/test_lambda.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import multiprocessing
  import time
  import unittest
  import logging
  from .._connect import main
  from .._cython import cy_test_utils
  import os
  import pytest
label_desc: Use image node_id 6 for calling the LambdaTests obj's underlying member method code with example usage: obj.test_expensive_packages_not_imported_in_lambda() and returns: unknown