code: def expand_np_candidates(np, stemming):
      """
      Create all case-combination of the noun-phrase (nyc to NYC, israel to Israel etc.)
  
      Args:
          np (str): a noun-phrase
          stemming (bool): True if to add case-combinations of noun-phrases's stem
  
      Returns:
          list(str): All case-combination of the noun-phrase
      """
      candidates = []
      # create all case-combinations of np-> nyc to NYC, israel to Israel etc.
      candidates.extend(get_all_case_combinations(np))
      if stemming:
          # create all case-combinations of np's stem-> t-shirts to t-shirt etc.
          # pylint: disable=no-member
          candidates.extend(get_all_case_combinations(fe.stem(np)))
      return candidates
  
imports: import argparse
  import csv
  import math
  import os
  from multiprocessing import Pool
  import feature_extraction
  import numpy
  from tqdm import tqdm
  from nlp_architect.utils.io import validate_existing_filepath, validate_parent_exists, validate_proxy_path
label_desc: Use image node_id 4 for calling a global function with example usage: expand_np_candidates(np, stemming) and returns: candidates