def call_len(context, builder, ty, val):
 try:
  len_impl = context.get_function(len, typing.signature(types.intp, ty))
 except NotImplementedError:
  return None
 else:
  return len_impl(builder, (val,))

def call_len ( context , builder , ty , val ) : try : len_impl = context . get_function ( len , typing . signature ( types . intp , ty ) ) except NotImplementedError : return None else : return len_impl ( builder , ( val , ) )
call len() on the given value .