code: def get_argv():
      args = [sys.argv[0], "tests", "--verbosity", "2"]
      attr_conditions = (
          []
      )  # Use nose's attribselect plugin to filter tests
      if "force-all" in sys.argv:
          # Don't exclude any tests
          return args
      if "cover" in sys.argv:
          args += ["--with-coverage", "--cover-html"]
      try:
          __import__("numpy")
      except ImportError:
          # Exclude tests that require numpy
          attr_conditions.append("not requires_numpy")
      if not PY2:
          # Exclude tests that only work on python2
          attr_conditions.append("not py2_only")
      if PYPY:
          # Exclude tests that don't work on PyPY
          attr_conditions.append("not no_pypy")
      if "fast" in sys.argv:
          attr_conditions.append("not slow")
      if "no-internet" in sys.argv:
          # Exclude tests that require internet
          attr_conditions.append("not requires_internet")
  
      # Skip tests with the "skip" attribute
      attr_conditions.append("not skip")
  
      attr_expression = " and ".join(attr_conditions)
      if attr_expression:
          args.extend(["-A", attr_expression])
      return args
  
imports: from __future__ import unicode_literals
  import subprocess
  import sys
  import nose
  from textblob.compat import PY2
label_desc: Use image node_id 2 for calling a global function with example usage: get_argv() and returns: args, args