code: def get_problem_size(problem_size, params):
      
      if isinstance(problem_size, (str, int, numpy.integer)):
          problem_size = (problem_size, )
      current_problem_size = [1, 1, 1]
      for i, s in enumerate(problem_size):
          if isinstance(s, str):
              current_problem_size[i] = int(eval(replace_param_occurrences(s, params)))
          elif isinstance(s, (int, numpy.integer)):
              current_problem_size[i] = s
          else:
              raise TypeError("Error: problem_size should only contain strings or integers")
      return current_problem_size
docs: compute current problem size