code: def _extend_3d_strides_dilations(strides, dilations, data_format):
      if data_format[-1] == "C":
          strides = [
              1,
              *([strides] * 3 if isinstance(strides, int) else strides),
              1,
          ]
          dilations = [
              1,
              *(
                  [dilations] * 3
                  if isinstance(dilations, int)
                  else dilations
              ),
              1,
          ]
      else:
          strides = [
              1,
              1,
              *([strides] * 3 if isinstance(strides, int) else strides),
          ]
          dilations = [
              1,
              1,
              *(
                  [dilations] * 3
                  if isinstance(dilations, int)
                  else dilations
              ),
          ]
      return strides, dilations
  
imports: from typing import Optional, Tuple, Union, Sequence
  import tensorflow
  from tensorflow.python.types.core import Tensor
  import ivy
  from ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes
  from .None import backend_version
  from ivy.functional.ivy.layers import _deconv_length, _get_x_data_format
label_desc: Use image node_id 8 for calling a global function with example usage: _extend_3d_strides_dilations(strides, dilations, data_format) and returns: strides,  dilations