Flow2Code: Evaluating Large Language Models for Flowchart-based Code Generation Capability