code: def _broadcast_to(array, shape, subok, readonly):
      shape = tuple(shape) if np.iterable(shape) else (shape,)
      array = np.array(array, copy=False, subok=subok)
      if not shape and array.shape:
          raise ValueError(
              "cannot broadcast a non-scalar to a scalar array"
          )
      if any(size < 0 for size in shape):
          raise ValueError(
              "all elements of broadcast shape must be non-" "negative"
          )
      extras = []
      it = np.nditer(
          (array,),
          flags=["multi_index", "refs_ok", "zerosize_ok"] + extras,
          op_flags=["readonly"],
          itershape=shape,
          order="C",
      )
      with it:
          # never really has writebackifcopy semantics
          broadcast = it.itviews[0]
      result = _maybe_view_as_subclass(array, broadcast)
      # In a future version this will go away
      if not readonly and array.flags._writeable_no_warn:
          result.flags.writeable = True
          result.flags._warn_on_write = True
      return result
  
file_path: catboost/contrib/python/numpy/py3/numpy/lib/stride_tricks.py
imports: import numpy
  from numpy.core.numeric import normalize_axis_tuple
  from numpy.core.overrides import array_function_dispatch, set_module
label_desc: Use image node_id 5 for calling a global function with example usage: _broadcast_to(array, shape, subok, readonly) and returns: result