code: def _get_descartes(vector_a, vector_b, n):
      """
      Get the Cartesian product of two vectors and choice n of result.
  
      :param list vector_a: list [[vector1], [vector2],......]
      :param list vector_b: list [x * items]
      :param int n: quantity to select int
      :return list: list items which we random choice from Cartesian product.
      """
  
      assert isinstance(n, int), f"n should be `int`, not `{type(n)}`."
      vector_a = _descartes_check(vector_a, n)
      vector_b = _descartes_check(vector_b, n)
      descartes = []
      for a in vector_a:
          for b in vector_b:
              descartes.append(a + [b])
      if len(descartes) > n:
          return random.sample(descartes, n)
      return descartes
  
imports: import copy
  import random
  from .logger import logger
label_desc: Use image node_id 17 for calling a global function with example usage: _get_descartes(vector_a, vector_b, n) and returns: descartes, random