code: def test_project_get_unspecified_entry_point():
      """Test that `Project` can run Python & bash scripts directly as entry points"""
      project = load_project()
      entry_point = project.get_entry_point("my_script.py")
      assert entry_point.name == "my_script.py"
      assert entry_point.command == "python my_script.py"
      assert entry_point.parameters == {}
      entry_point = project.get_entry_point("my_script.sh")
      assert entry_point.name == "my_script.sh"
      assert entry_point.command == "%s my_script.sh" % os.environ.get(
          "SHELL", "bash"
      )
      assert entry_point.parameters == {}
      with pytest.raises(
          ExecutionException, match="Could not find my_program.scala"
      ):
          project.get_entry_point("my_program.scala")
  
file_path: mlflow/tests/projects/test_project_spec.py
imports: import os
  import textwrap
  import pytest
  from mlflow.exceptions import ExecutionException
  from mlflow.projects import _project_spec
  from tests.projects.utils import load_project
label_desc: Use image node_id 2 for calling a global function with example usage: test_project_get_unspecified_entry_point() without return types