docstr: Preserves the nested structure created by `Namespaces` and `dict_like` objects,
  but replaces all other values with single-element lists,
  so the work can be delegated to `extend` method.
docstr_tok: ["Preserves","the","nested","structure","created","by","`","Namespaces","`","and","`","dict_like","`","objects",",","but","replaces","all","other","values","with","single-element","lists",",","so","the","work","can","be","delegated","to","`","extend","`","method","."]
code: def transform_to_extend_format(value):
      """Preserves the nested structure created by `Namespaces` and `dict_like` objects,
      but replaces all other values with single-element lists,
      so the work can be delegated to `extend` method."""
      if isinstance(value, Namespace) or is_dict_like(value):
          return {
              k: ExtendUtils.transform_to_extend_format(v)
              for k, v in value.items()
          }
  
      if isinstance(value, StringifyValue):
          return stringify_unsupported([value.value])
  
      return [value]
  
imports: from functools import wraps
  from typing import TYPE_CHECKING, Any, Collection, Dict, Iterable, Iterator, List, NewType, Optional, Union
  from neptune.api.dtos import FileEntry
  from neptune.attributes import File
  from neptune.attributes.atoms.artifact import Artifact
  from neptune.attributes.constants import SYSTEM_STAGE_ATTRIBUTE_PATH
  from neptune.attributes.file_set import FileSet
  from neptune.attributes.namespace import Namespace
  from neptune.attributes.series import FileSeries
  from neptune.attributes.series.float_series import FloatSeries
  from neptune.attributes.series.string_series import StringSeries
  from neptune.attributes.sets.string_set import StringSet
  from neptune.common.warnings import warn_about_unsupported_type
  from neptune.exceptions import MissingFieldException, NeptuneCannotChangeStageManually, NeptuneUserApiInputException
  from neptune.internal.artifacts.types import ArtifactFileData
  from neptune.internal.types.stringify_value import StringifyValue
  from neptune.internal.utils import is_collection, is_dict_like, is_float, is_float_like, is_string, is_stringify_value, verify_collection_type, verify_type
  from neptune.internal.utils.paths import join_paths, parse_path
  from neptune.internal.value_to_attribute_visitor import ValueToAttributeVisitor
  from neptune.metadata_containers.abstract import SupportsNamespaces
  from neptune.types.atoms.file import File
  from neptune.types.type_casting import cast_value_for_extend
  from neptune.types.value_copy import ValueCopy
  from neptune.utils import stringify_unsupported
label_desc: Use image node_id 1 for calling the ExtendUtils obj's underlying member method code with example usage: obj.transform_to_extend_format(value) and returns: list, unknown, stringify_unsupported