class_docstr: The Test optimizer
class_docstr_tok: ["The","Test","optimizer"]
docstr: Creates a state to duplicate weight.
docstr_tok: ["Creates","a","state","to","duplicate","weight","."]
code: def create_state(self, index, weight):
      """Creates a state to duplicate weight."""
      return zeros(weight.shape, weight.context)
  
imports: import warnings
  import numpy
  from ..ndarray import NDArray, zeros, cast
  from ..util import is_np_array
label_desc: Use image node_id 2 for calling the Test obj's underlying member method code with example usage: obj.create_state(index, weight) and returns: zeros