code: def test_insert_invalid_source_code_args():
      with pytest.raises(TypeError) as err:
          TensorFlow(
              image_uri="IMAGE_URI",
              role=ROLE,
              entry_point=ParameterString(name="EntryPoint"),
              instance_type="ml.m5.xlarge",
              instance_count=1,
              enable_network_isolation=True,
          )
      assert (
          "entry_point, source_dir should not be pipeline variables "
          "when enable_network_isolation is a pipeline variable or it is set to True."
      ) in str(err.value)
  
      with pytest.raises(TypeError) as err:
          TensorFlow(
              image_uri="IMAGE_URI",
              role=ROLE,
              entry_point="dummy.py",
              source_dir=ParameterString(name="SourceDir"),
              instance_type="ml.m5.xlarge",
              instance_count=1,
              enable_network_isolation=ParameterBoolean(
                  name="EnableNetworkIsolation"
              ),
          )
      assert (
          "entry_point, source_dir should not be pipeline variables "
          "when enable_network_isolation is a pipeline variable or it is set to True."
      ) in str(err.value)
  
      with pytest.raises(TypeError) as err:
          TensorFlow(
              image_uri="IMAGE_URI",
              role=ROLE,
              git_config={
                  "repo": "REPO",
                  "branch": "BRANCH",
                  "commit": "COMMIT",
              },
              source_dir=ParameterString(name="SourceDir"),
              entry_point=ParameterString(name="EntryPoint"),
              instance_type="ml.m5.xlarge",
              instance_count=1,
          )
      assert (
          "entry_point, source_dir should not be pipeline variables when git_config is given"
          in str(err.value)
      )
  
      with pytest.raises(TypeError) as err:
          TensorFlow(
              image_uri="IMAGE_URI",
              role=ROLE,
              entry_point=ParameterString(name="EntryPoint"),
              instance_type="ml.m5.xlarge",
              instance_count=1,
          )
      assert (
          "The entry_point should not be a pipeline variable "
          "when source_dir is missing"
      ) in str(err.value)
  
      with pytest.raises(TypeError) as err:
          TensorFlow(
              image_uri="IMAGE_URI",
              role=ROLE,
              entry_point=ParameterString(name="EntryPoint"),
              source_dir="file://my-file/",
              instance_type="ml.m5.xlarge",
              instance_count=1,
          )
      assert (
          "The entry_point should not be a pipeline variable "
          "when source_dir is a local path"
      ) in str(err.value)
  
imports: from __future__ import absolute_import
  import json
  import logging
  import os
  from mock import patch, Mock, MagicMock
  from packaging import version
  import pytest
  from sagemaker.estimator import _TrainingJob
  from sagemaker.session_settings import SessionSettings
  from sagemaker.tensorflow import TensorFlow
  from sagemaker.instance_group import InstanceGroup
  from sagemaker.workflow.parameters import ParameterString, ParameterBoolean
  from tests.unit import DATA_DIR
label_desc: Use image node_id 19 for calling a global function with example usage: test_insert_invalid_source_code_args() without return types