code: def test_local_run_tensor_flow_script(setup_cluster):
      path = os.path.join(
          os.path.dirname(os.path.abspath(__file__)),
          "tf_distributed_sample.py",
      )
      assert (
          run_tensorflow_script(
              path, n_workers=2, command_argv=["multiple"]
          ).fetch()["status"]
          == "ok"
      )
  
      with pytest.raises(ValueError):
          run_tensorflow_script(path, n_workers=0)
  
      with pytest.raises(ValueError):
          run_tensorflow_script(path, 2, n_ps=-1)
  
imports: import os
  import pytest
  from ..None import run_tensorflow_script
label_desc: Use image node_id 1 for calling a global function with example usage: test_local_run_tensor_flow_script(setup_cluster) without return types