code: def vector_init(self, values):
      var_name = self.add_var_declaration(len(values), exac_size=True)
      for i, val in enumerate(values):
          self.add_code_line(
              self.tpl_array_set_by_index(
                  array_name=var_name, index=i, value=val
              )
          )
      return var_name
  
file_path: m2cgen/m2cgen/interpreters/visual_basic/code_generator.py
imports: from contextlib import contextmanager
  from m2cgen.ast import CompOpType
  from m2cgen.interpreters.code_generator import CodeTemplate, ImperativeCodeGenerator
label_desc: Use image node_id 6 for calling the VisualBasicCodeGenerator obj's underlying member method code with example usage: obj.vector_init(values) and returns: var_name