code: def default_postprocess(
      data, return_type: Optional[str] = "list"
  ) -> List:
      if not isinstance(data, (np.ndarray, list, tuple, int, float)):
          data = data.numpy()
      if return_type == "list":
          if isinstance(data, np.ndarray):
              data = data.tolist()
          else:
              list(data)
      return data
  
file_path: chitra/chitra/data_processing/default/vision.py
imports: from io import BytesIO
  from typing import List, Optional, Tuple
  import numpy
  from PIL import Image
  from ..processor import DataProcessor
label_desc: Use image node_id 2 for calling a global function with example usage: default_postprocess(data, return_type) and returns: data