code: def _convert_gs_to_np(value):
      if gs.is_array(value):
          return gs.to_numpy(value)
  
      if isinstance(value, (list, tuple)):
          new_value = []
          for value_ in value:
              new_value.append(_convert_gs_to_np(value_))
  
          if isinstance(value, tuple):
              new_value = tuple(new_value)
  
          return new_value
  
      if isinstance(value, dict):
          return {
              key: _convert_gs_to_np(value_)
              for key, value_ in value.items()
          }
  
      return value
  
imports: import random
  import numpy
  import pytest
  import scipy
  import geomstats.backend
  from geomstats.test.test_case import TestCase
  from geomstats.test.vectorization import generate_vectorization_data
label_desc: Use image node_id 1 for calling a global function with example usage: _convert_gs_to_np(value) and returns: value, gs, new_value, unknown