def _parse_policy_info(name, prob, level, replace_value, augmentation_hparams):
    'Return the function that corresponds to `name` and update `level` param.'
    func = NAME_TO_FUNC[name]
    args = level_to_arg(augmentation_hparams)[name](level)
    if ('prob' in inspect.getfullargspec(func)[0]):
        args = tuple(([prob] + list(args)))
    if ('replace' in inspect.getfullargspec(func)[0]):
        assert ('replace' == inspect.getfullargspec(func)[0][(- 1)])
        args = tuple((list(args) + [replace_value]))
    if ('bboxes' not in inspect.getfullargspec(func)[0]):
        func = bbox_wrapper(func)
    return (func, prob, args)
Return the function that corresponds to `name` and update `level` param.
def _parse_policy_info(name, prob, level, replace_value, augmentation_hparams):
    
    func = NAME_TO_FUNC[name]
    args = level_to_arg(augmentation_hparams)[name](level)
    if ('prob' in inspect.getfullargspec(func)[0]):
        args = tuple(([prob] + list(args)))
    if ('replace' in inspect.getfullargspec(func)[0]):
        assert ('replace' == inspect.getfullargspec(func)[0][(- 1)])
        args = tuple((list(args) + [replace_value]))
    if ('bboxes' not in inspect.getfullargspec(func)[0]):
        func = bbox_wrapper(func)
    return (func, prob, args)