parameters: (arrays, variables)
docstring: Associate variables with arrays.
  
      Parameters
      ----------
      arrays: NDArray or List[NDArray]
      variables: Symbol or List[Symbol] of variables
docstring_summary: Associate variables with arrays.
docstring_tokens: Associate variables with arrays .
function: def set_variable(arrays, variables):
      """Associate variables with arrays.
  
      Parameters
      ----------
      arrays: NDArray or List[NDArray]
      variables: Symbol or List[Symbol] of variables
      """
  
      arrays = _as_list(arrays)
      variables = _as_list(variables)
  
      # Prepare ctypes array types
      arrays_type = variables_type = ctypes.c_void_p * len(arrays)
  
      # Convert handles
      arrays = arrays_type(*[array.handle for array in arrays])
      variables = variables_type(*[symbol.handle for symbol in variables])
  
      check_call(_LIB.MXNDArraySetDeferredComputeVariable(arrays, variables, len(arrays)))
function_tokens: def set_variable ( arrays , variables ) : arrays = _as_list ( arrays ) variables = _as_list ( variables ) # Prepare ctypes array types arrays_type = variables_type = ctypes . c_void_p * len ( arrays ) # Convert handles arrays = arrays_type ( * [ array . handle for array in arrays ] ) variables = variables_type ( * [ symbol . handle for symbol in variables ] ) check_call ( _LIB . MXNDArraySetDeferredComputeVariable ( arrays , variables , len ( arrays ) ) )