def METHOD_NAME(content: TextDocument, isort_args: IsortArgs) -> TextDocument:
    """Call ``isort.code()`` and return the result as a `TextDocument` object
    :param content: The contents of the Python source code file to sort imports in
    :param isort_args: Keyword arguments for ``isort.code()``
    """
    code = content.string
    logger.debug(
        "isort.code(code=..., %s)",
        ", ".join(f"{k}={v!r}" for k, v in isort_args.items()),
    )
    try:
        code = isort_code(code=code, **isort_args)
    except isort.exceptions.FileSkipComment:
        pass
    return TextDocument.from_str(
        code,
        encoding=content.encoding,
        mtime=content.mtime,
    )