parameters: (constr, func)
return_statement: return type(constr)(expr, constr.constr_id, constr.shape)
docstring: Creates a copy of the constraint modified according to func.
  
      Parameters
      ----------
      constr : LinConstraint
          The constraint to modify.
      func : function
          Function to modify the constraint expression.
  
      Returns
      -------
      LinConstraint
          A copy of the constraint with the specified changes.
docstring_summary: Creates a copy of the constraint modified according to func.
docstring_tokens: Creates a copy of the constraint modified according to func .
function: def copy_constr(constr, func):
      """Creates a copy of the constraint modified according to func.
  
      Parameters
      ----------
      constr : LinConstraint
          The constraint to modify.
      func : function
          Function to modify the constraint expression.
  
      Returns
      -------
      LinConstraint
          A copy of the constraint with the specified changes.
      """
      expr = func(constr.expr)
      return type(constr)(expr, constr.constr_id, constr.shape)
function_tokens: def copy_constr ( constr , func ) : expr = func ( constr . expr ) return type ( constr ) ( expr , constr . constr_id , constr . shape )