code: def test_infer_path(
      clear_pages_state, module_name, template, pages_folder, expected
  ):
      with patch.dict(
          _pages.CONFIG, {"pages_folder": pages_folder}, clear=True
      ):
          result = _pages._infer_path(module_name, template)
          assert result == expected
  
file_path: dash/tests/unit/pages/test_pages.py
imports: from pathlib import Path
  import pytest
  import dash
  from dash import Dash, _pages
  from mock import patch
label_desc: Use image node_id 1 for calling a global function with example usage: test_infer_path(clear_pages_state, module_name, template, pages_folder, expected) without return types