parameters: (
      left: ABCSeries,
      result: Union[np.ndarray, ABCExtensionArray],
      index: ABCIndexClass,
      name,
  )
return_statement: return out
docstring: Construct an appropriately-labelled Series from the result of an op.
  
      Parameters
      ----------
      left : Series
      result : ndarray or ExtensionArray
      index : Index
      name : object
  
      Returns
      -------
      Series
          In the case of __divmod__ or __rdivmod__, a 2-tuple of Series.
docstring_summary: Construct an appropriately-labelled Series from the result of an op.
docstring_tokens: Construct an appropriately - labelled Series from the result of an op .
function: def _construct_result(
      left: ABCSeries,
      result: Union[np.ndarray, ABCExtensionArray],
      index: ABCIndexClass,
      name,
  ):
      """
      Construct an appropriately-labelled Series from the result of an op.
  
      Parameters
      ----------
      left : Series
      result : ndarray or ExtensionArray
      index : Index
      name : object
  
      Returns
      -------
      Series
          In the case of __divmod__ or __rdivmod__, a 2-tuple of Series.
      """
      if isinstance(result, tuple):
          # produced by divmod or rdivmod
          return (
              _construct_result(left, result[0], index=index, name=name),
              _construct_result(left, result[1], index=index, name=name),
          )
  
      # We do not pass dtype to ensure that the Series constructor
      #  does inference in the case where `result` has object-dtype.
      out = left._constructor(result, index=index)
      out = out.__finalize__(left)
  
      # Set the result's name after __finalize__ is called because __finalize__
      #  would set it back to self.name
      out.name = name
      return out
function_tokens: def _construct_result ( left : ABCSeries , result : Union [ np . ndarray , ABCExtensionArray ] , index : ABCIndexClass , name , ) : if isinstance ( result , tuple ) : # produced by divmod or rdivmod return ( _construct_result ( left , result [ 0 ] , index = index , name = name ) , _construct_result ( left , result [ 1 ] , index = index , name = name ) , ) # We do not pass dtype to ensure that the Series constructor #  does inference in the case where `result` has object-dtype. out = left . _constructor ( result , index = index ) out = out . __finalize__ ( left ) # Set the result's name after __finalize__ is called because __finalize__ #  would set it back to self.name out . name = name return out