code: def list_to_tuple(maybe_list):
      if isinstance(maybe_list, list):
          return tuple(maybe_list)
      return maybe_list
  
imports: import collections
  import functools
  import math
  import typing
  import jax
  import jax.numpy
  import numpy
  import six
  import typing_extensions
  from elegy import types, utils
label_desc: Use image node_id 6 for calling a global function with example usage: list_to_tuple(maybe_list) and returns: maybe_list, tuple