def _optionally_make_call(method_name, param):
    # type: (str, str) -> str
    """Return a call to method_name if it is not None, otherwise return an empty string."""
    if not method_name:
        return ''

    return "%s(%s);" % (method_name, param)