code: def _parse(value: str, function: callable, fmt: str) -> None:
      """
      Parse a string into a value, and format a nice ValueError if it fails.
  
      Returns `function(value)`.
      Any `ValueError` raised is catched and a new `ValueError` is raised
      with message `fmt.format(e)`, where `e` is the caught `ValueError`.
      """
      try:
          return function(value)
      except ValueError as e:
          six.raise_from(ValueError(fmt.format(e)), None)
  
imports: import re
  import numpy
  from typing import Dict, List, Optional, Union, Tuple
  import six
  import cv2
  import os
  import paddle
  import paddlehub.vision.transforms
  from PIL import ImageFile
  from auto_augment.autoaug.transform.autoaug_transform import AutoAugTransform
label_desc: Use image node_id 1 for calling a global function with example usage: _parse(value, function, fmt) and returns: function