code: def test_convert_from_saved_model_dir():
      # SavedModel directory generated by TensorFlow 2.x
      mlmodel = ct.convert("./saved_model")
      mlmodel.save("./model.mlmodel")
  
imports: from os import getcwd, chdir
  from shutil import rmtree
  from os.path import exists
  from tempfile import mkdtemp
  import pytest
  import numpy
  import coremltools
  import os
  from coremltools._deps import _HAS_TF_1, _HAS_TF_2, _HAS_TORCH, MSG_TF1_NOT_FOUND, MSG_TF2_NOT_FOUND, MSG_TORCH_NOT_FOUND
label_desc: Use image node_id 6 for calling the TestTensorFlow2ConverterExamples obj's underlying member method code with example usage: obj.test_convert_from_saved_model_dir() without return types