code: def _tobytes(x: tp.ArrayLike) -> bytes:
      x = np.array(x, copy=False)  # for compatibility
      assert x.ndim == 1, f"Input shape: {x.shape}"
      assert (
          x.dtype == np.float_
      ), f"Incorrect type {x.dtype} is not float"
      return x.tobytes()
  
imports: import math
  import operator
  import numpy
  from nevergrad.parametrization import parameter
  from nevergrad.parametrization.utils import float_penalty
  import nevergrad.common.typing
  from nevergrad.common.tools import OrderedSet
label_desc: Use image node_id 3 for calling a global function with example usage: _tobytes(x) and returns: x