parameters: (fillvalue, dt)
return_statement: return tuple(output_value)
docstring: Create a fill value for a structured dtype.
  
      Parameters
      ----------
      fillvalue: scalar or array_like
          Scalar or array representing the fill value. If it is of shorter
          length than the number of fields in dt, it will be resized.
      dt: dtype
          The structured dtype for which to create the fill value.
  
      Returns
      -------
      val: tuple
          A tuple of values corresponding to the structured fill value.
docstring_summary: Create a fill value for a structured dtype.
docstring_tokens: Create a fill value for a structured dtype .
function: def _recursive_set_fill_value(fillvalue, dt):
      """
      Create a fill value for a structured dtype.
  
      Parameters
      ----------
      fillvalue: scalar or array_like
          Scalar or array representing the fill value. If it is of shorter
          length than the number of fields in dt, it will be resized.
      dt: dtype
          The structured dtype for which to create the fill value.
  
      Returns
      -------
      val: tuple
          A tuple of values corresponding to the structured fill value.
  
      """
      fillvalue = np.resize(fillvalue, len(dt.names))
      output_value = []
      for (fval, name) in zip(fillvalue, dt.names):
          cdtype = dt[name]
          if cdtype.subdtype:
              cdtype = cdtype.subdtype[0]
  
          if cdtype.names is not None:
              output_value.append(tuple(_recursive_set_fill_value(fval, cdtype)))
          else:
              output_value.append(np.array(fval, dtype=cdtype).item())
      return tuple(output_value)
function_tokens: def _recursive_set_fill_value ( fillvalue , dt ) : fillvalue = np . resize ( fillvalue , len ( dt . names ) ) output_value = [ ] for ( fval , name ) in zip ( fillvalue , dt . names ) : cdtype = dt [ name ] if cdtype . subdtype : cdtype = cdtype . subdtype [ 0 ] if cdtype . names is not None : output_value . append ( tuple ( _recursive_set_fill_value ( fval , cdtype ) ) ) else : output_value . append ( np . array ( fval , dtype = cdtype ) . item ( ) ) return tuple ( output_value )