code: def extend_to(list_, n):
      needed = n - len(list_)
  
      if needed > 0:
          to_add = [None] * needed
          return list(list_) + to_add
      else:
          return copy(list_)
  
file_path: sklearn-evaluation/src/sklearn_evaluation/table.py
imports: from copy import copy
  from .None import compute
label_desc: Use image node_id 1 for calling a global function with example usage: extend_to(list_, n) and returns: unknown, copy