code: def escape_str(value):
      if os.name == "nt":
          from subprocess import list2cmdline
  
          return list2cmdline([value])
      from shlex import quote
  
      return quote(value)
  
imports: import os
  import re
  import typing
  from collections.abc import Iterable, Mapping
  from functools import singledispatch
  from funcy import memoize, rpartial
  from dvc.exceptions import DvcException
  from dvc.utils.flatten import flatten
label_desc: Use image node_id 7 for calling a global function with example usage: escape_str(value) and returns: quote, list2cmdline