def METHOD_NAME():
    """
    Test that is_optional works on different corner cases of docstrings for an optional field
    """
    # test docstring with multiple params of the same name still works, but
    # evaluated whether "optional" on the first description
    def _fn(self, some_input: Optional[int]):
        """
        Args:
            some_input: yadda yadda blah int
                optional int for input
            some_input: I repeat myself
        Returns:
            None
        """
        pass
    assert is_optional(_fn, "some_input") is True
    # test if docstring_parser.parse throws an exception, we return False
    with patch("docstring_parser.parse", side_effect=ParseError("mocked error")):
        assert is_optional(_fn, "some_input") is False
    def _fn(input):
        pass
    # test is_optional works on empty docstring
    assert is_optional(_fn, "input") is False