def prepare_asides(func):
 @functools.wraps(func)
 def wrapper(*args, **kwargs):
  '\n        Supported kwargs:\n            asides - list with connected asides data for the passed block\n        '
  if ('asides' in kwargs):
   kwargs['asides'] = prepare_asides_to_store(kwargs['asides'])
  return func(*args, **kwargs)
 return wrapper

def prepare_asides ( func ) : @ functools . wraps ( func ) def wrapper ( * args , ** kwargs ) : if ( 'asides' in kwargs ) : kwargs [ 'asides' ] = prepare_asides_to_store ( kwargs [ 'asides' ] ) return func ( * args , ** kwargs ) return wrapper
a decorator to handle optional asides param .