docstr: Create internal variables for the layer.
docstr_tok: ["Create","internal","variables","for","the","layer","."]
code: def _create_variables(self, device=None, dtype=None):
      """Create internal variables for the layer."""
      device = ivy.default(device, self.device)
      dtype = ivy.default(dtype, self.dtype)
      if self._affine:
          return {
              "b": self._bias_init.create_variables(
                  self._bias_shape, device, dtype=dtype
              ),
              "running_mean": self._running_mean_init.create_variables(
                  self._running_mean_shape, device, dtype=dtype
              ),
              "running_var": self._running_var_init.create_variables(
                  self._running_var_shape, device, dtype=dtype
              ),
              "w": self._weight_init.create_variables(
                  self._weight_shape, device, dtype=dtype
              ),
          }
      return {}
  
file_path: ivy/ivy/stateful/norms.py
imports: import ivy
  from ivy.stateful.module import Module
  from ivy.stateful.initializers import Zeros, Ones
label_desc: Use image node_id 2 for calling the BatchNorm2D obj's underlying member method code with example usage: obj._create_variables(device, dtype) and returns: dict, dict