parameters: (shape, value, dtype=None)
return_statement: return values
docstring: create np.ndarray of specified shape and dtype, filled with values
  
      Parameters
      ----------
      shape : tuple
      value : scalar value
      dtype : np.dtype, optional
          dtype to coerce
  
      Returns
      -------
      ndarray of shape, filled with value, of specified / inferred dtype
docstring_summary: create np.ndarray of specified shape and dtype, filled with values
docstring_tokens: create np . ndarray of specified shape and dtype filled with values
function: def cast_scalar_to_array(shape, value, dtype=None):
      """
      create np.ndarray of specified shape and dtype, filled with values
  
      Parameters
      ----------
      shape : tuple
      value : scalar value
      dtype : np.dtype, optional
          dtype to coerce
  
      Returns
      -------
      ndarray of shape, filled with value, of specified / inferred dtype
  
      """
  
      if dtype is None:
          dtype, fill_value = infer_dtype_from_scalar(value)
      else:
          fill_value = value
  
      values = np.empty(shape, dtype=dtype)
      values.fill(fill_value)
  
      return values
function_tokens: def cast_scalar_to_array ( shape , value , dtype = None ) : if dtype is None : dtype , fill_value = infer_dtype_from_scalar ( value ) else : fill_value = value values = np . empty ( shape , dtype = dtype ) values . fill ( fill_value ) return values