code: def test_fstring_with_args():
      """Test parsing of a function with an fstring with args as a docstring."""
      parser = Parser()
      code = CodeSnippet(
          """\
          foo = "bar"
          bar = "baz"
          def do_something(pos_param0, pos_param1, kw_param0="default"):
              f\"""Do some {foo} and some {bar}.\"""
              return None
      """
      )
      module = parser.parse(code, "file_path")
      assert module.is_public
      assert module.dunder_all is None
  
      (function,) = module.children
      assert function.name == "do_something"
      assert function.decorators == []
      assert function.children == []
      assert (
          function.docstring == 'f"""Do some {foo} and some {bar}."""'
      )
      assert function.docstring.start == 4
      assert function.docstring.end == 4
      assert function.kind == "function"
      assert function.parent == module
      assert function.start == 3
      assert function.end == 5
      assert function.error_lineno == 4
      assert function.source == textwrap.dedent(
          """\
          def do_something(pos_param0, pos_param1, kw_param0="default"):
              f\"""Do some {foo} and some {bar}.\"""
              return None
      """
      )
      assert function.is_public
      assert str(function) == "in public function `do_something`"
  
imports: import io
  import sys
  import pytest
  import textwrap
  from pathlib import Path
  from pydocstyle.parser import Parser, ParseError
label_desc: Use image node_id 3 for calling a global function with example usage: test_fstring_with_args() without return types