code: def with_new_path_component(self, new_path_component) -> "AsyncFSURL":
      prefix = self.path if self.path.endswith("/") else self.path + "/"
      suffix = (
          new_path_component[1:]
          if new_path_component.startswith("/")
          else new_path_component
      )
      return self.with_path(prefix + suffix)
  
imports: from typing import Any, AsyncContextManager, Optional, Type, Set, AsyncIterator, Callable, TypeVar, Generic, List, Awaitable, Union, Tuple
  from typing_extensions import ParamSpec
  from types import TracebackType
  import abc
  import asyncio
  import datetime
  from hailtop.utils import retry_transient_errors, OnlineBoundedGather2
  from .stream import EmptyReadableStream, ReadableStream, WritableStream
  from .exceptions import FileAndDirectoryError
label_desc: Use image node_id 6 for calling the AsyncFSURL obj's underlying member method code with example usage: obj.with_new_path_component(new_path_component) and returns: self