code: def virtualenv(name, create=False, python="/usr/bin/python3.6"):
      python = Path(python).resolve()
      env_path = VENV_DIR
      if create:
          if env_path.exists():
              shutil.rmtree(str(env_path))
          local(
              "{python} -m venv {env_path}".format(
                  python=python, env_path=VENV_DIR
              )
          )
  
      def wrapped_local(cmd, env_vars=[], capture=False, direct=False):
          return local(
              "source {}/bin/activate && {}".format(env_path, cmd),
              shell="/bin/bash",
              capture=False,
          )
  
      yield wrapped_local
  
file_path: cython-blis/fabfile.py
imports: from __future__ import unicode_literals, print_function
  import contextlib
  from pathlib import Path
  from fabric.api import local, lcd, env, settings, prefix
  from os import path, environ
  import shutil
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: virtualenv(name, create, python) and returns: local