code: def base_linker(vs=None, pythonflags=None, cpp=False, use_env=True):
      """
      Returns basic linker command.
  
      Args:
          vs:
              Windows only. A `wdev.WindowsVS` instance or None to use default
              `wdev.WindowsVS` instance.
          pythonflags:
              A `pipcl.PythonFlags` instance or None to use default
              `pipcl.PythonFlags` instance.
          cpp:
              If true we return C++ linker command instead of C. On Windows this
              has no effect - we always return `link.exe`.
          use_env:
              If true we use `os.environ['LD']` if set.
  
      Returns `(linker, pythonflags)`:
          linker:
              Linker command. On Windows this is of the form
              `{vs.vcvars}&&{vs.link}`; otherwise it is typically `cc` or `c++`.
          pythonflags:
              The `pythonflags` arg or a new `pipcl.PythonFlags` instance.
      """
      if not pythonflags:
          pythonflags = PythonFlags()
      linker = None
      if use_env:
          if os.environ.get("LD"):
              linker = "$LD"
      if linker:
          pass
      elif windows():
          if not vs:
              vs = wdev.WindowsVS()
          linker = f'"{vs.vcvars}"&&"{vs.link}"'
      elif wasm():
          linker = "em++" if cpp else "emcc"
      else:
          linker = "c++" if cpp else "cc"
      linker = macos_add_cross_flags(linker)
      return linker, pythonflags
  
imports: import base64
  import glob
  import hashlib
  import inspect
  import io
  import os
  import platform
  import re
  import shutil
  import site
  import setuptools
  import subprocess
  import sys
  import sysconfig
  import tarfile
  import textwrap
  import time
  import zipfile
  import wdev
label_desc: Use image node_id 3 for calling a global function with example usage: base_linker(vs, pythonflags, cpp, use_env) and returns: linker,  pythonflags