code: def test_ls_repo_with_custom_color_env_defined(monkeypatch):
      monkeypatch.setenv(
          "LS_COLORS", "rs=0:di=01;34:*.xml=01;31:*.dvc=01;33:"
      )
      ls_colors = LsColors()
      colorizer = colorize(ls_colors)
  
      assert colorizer(".dvcignore") == ".dvcignore"
      assert colorizer(".gitignore") == ".gitignore"
      assert colorizer("README.md") == "README.md"
      assert colorizer("data", "d") == "\x1b[01;34mdata\x1b[0m"
      assert (
          colorizer("structure.xml")
          == "\x1b[01;31mstructure.xml\x1b[0m"
      )
      assert (
          colorizer("structure.xml.dvc")
          == "\x1b[01;33mstructure.xml.dvc\x1b[0m"
      )
  
file_path: dvc/tests/unit/command/ls/test_ls_colors.py
imports: from dvc.commands.ls.ls_colors import LsColors
label_desc: Use image node_id 10 for calling a global function with example usage: test_ls_repo_with_custom_color_env_defined(monkeypatch) without return types