code: def _convert_to_list(value, n, name="padding", _type=int):
      if isinstance(value, _type):
          return [value] * n
      else:
          try:
              value_list = list(value)
          except TypeError as e:
              raise TypeError(
                  f"The input {value}'s type must be list or tuple. Received:"
                  f" {type(value)}"
              ) from e
          else:
              return value_list
  
imports: from typing import Optional, Tuple, Union, Sequence
  import paddle
  import ivy
  from ivy.func_wrapper import with_unsupported_device_and_dtypes
  from ivy.utils.exceptions import IvyNotImplementedException
  from ivy.functional.ivy.layers import _handle_padding, _get_x_data_format, _deconv_length
  import ivy.functional.backends.paddle
  from .None import backend_version
label_desc: Use image node_id 2 for calling a global function with example usage: _convert_to_list(value, n, name, _type) and returns: unknown, value_list