code: def complete_dims(s, dims):
      if not hasattr(s, "__iter__"):
          return (s,) * dims
      if len(s) == dims:
          return s
      raise ValueError("")
  
file_path: nnabla/python/src/nnabla/core/modules.py
imports: from __future__ import absolute_import
  import nnabla.functions
  import nnabla.parametric_functions
  from nnabla.core.module import Module
label_desc: Use image node_id 1 for calling a global function with example usage: complete_dims(s, dims) and returns: unknown, s