code: def test_environments(self):
      def test_env(i):
          if i > 500:
              assert os.environ["OMP_NUM_THREADS"] == "1"
              assert os.environ["OPENBLAS_NUM_THREADS"] == "1"
              assert os.environ["MKL_NUM_THREADS"] == "1"
              assert os.environ["MKL_DOMAIN_NUM_THREADS"] == "1"
              assert os.environ["NUMBA_NUM_THREADS"] == "1"
  
          return i
  
      import turicreate as tc
  
      x = tc.SArray(range(10000))
      y = x.apply(test_env)
  
      self.assertTrue((x == y).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 4 for calling the LambdaTests obj's underlying member method code with example usage: obj.test_environments() and returns: i