def _try_call(fn, args, kwargs):
  """Convenience function for evaluating argument `fn`."""
  if fn is None:
    return args[0]
  try:
    return fn(*args, **kwargs)
  except TypeError:
    return fn(*args)