code: def blackman_window(
      size: int,
      /,
      *,
      periodic: bool = True,
      dtype: Optional[np.dtype] = None,
      out: Optional[np.ndarray] = None,
  ) -> np.ndarray:
      if size < 2:
          return np.ones([size], dtype=dtype)
      if periodic:
          count = np.arange(size) / size
      else:
          count = np.linspace(start=0, stop=size, num=size)
  
      return (
          (0.42 - 0.5 * np.cos(2 * np.pi * count))
          + (0.08 * np.cos(2 * np.pi * 2 * count))
      ).astype(dtype)
  
file_path: ivy/ivy/functional/backends/numpy/experimental/creation.py
imports: from typing import Optional, Tuple, Sequence, Union
  import numpy
  import ivy
label_desc: Use image node_id 7 for calling a global function with example usage: blackman_window() and returns: unknown, np