code: def test_patch_ldflags(listdir_mock):
      mkl_path = "some_path"
      flag_list = [
          "-lm",
          "-lopenblas",
          f"-L {mkl_path}",
          "-l mkl_core",
          "-lmkl_rt",
      ]
      assert GCC_compiler.patch_ldflags(flag_list) == [
          "-lm",
          "-lopenblas",
          f"-L {mkl_path}",
          '"' + os.path.join(mkl_path, "mkl_core.1.dll") + '"',
          '"' + os.path.join(mkl_path, "mkl_rt.1.0.dll") + '"',
      ]
  
imports: import multiprocessing
  import os
  import re
  import sys
  import tempfile
  from unittest.mock import MagicMock, patch
  import numpy
  import pytest
  import pytensor
  import pytensor.tensor
  from pytensor.compile.function import function
  from pytensor.compile.ops import DeepCopyOp
  from pytensor.configdefaults import config
  from pytensor.graph.basic import Apply
  from pytensor.graph.fg import FunctionGraph
  from pytensor.link.c.basic import CLinker
  from pytensor.link.c.cmodule import GCC_compiler, ModuleCache, default_blas_ldflags
  from pytensor.link.c.exceptions import CompileError
  from pytensor.link.c.op import COp
  from pytensor.tensor.type import dvectors, vector
label_desc: Use image node_id 13 for calling a global function with example usage: test_patch_ldflags(listdir_mock) without return types