code: def test_lazydict_creation(self):
      # Different ways of creating LazyDict
      lazy_dicts = []
      lazy_dicts += [LazyDict(DATA["data_per_streamline_func"])]
      lazy_dicts += [LazyDict(**DATA["data_per_streamline_func"])]
  
      expected_keys = DATA["data_per_streamline_func"].keys()
      for data_dict in lazy_dicts:
          assert is_lazy_dict(data_dict)
          assert data_dict.keys() == expected_keys
          for k in data_dict.keys():
              assert_array_equal(
                  list(data_dict[k]),
                  list(DATA["data_per_streamline"][k]),
              )
  
          assert len(data_dict) == len(DATA["data_per_streamline_func"])
  
imports: import copy
  import operator
  import sys
  import unittest
  import warnings
  from collections import defaultdict
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from ...testing import assert_arrays_equal, clear_and_catch_warnings
  from ..None import tractogram
  from ..tractogram import LazyDict, LazyTractogram, PerArrayDict, PerArraySequenceDict, Tractogram, TractogramItem, is_data_dict, is_lazy_dict
label_desc: Use image node_id 1 for calling the TestLazyDict obj's underlying member method code with example usage: obj.test_lazydict_creation() without return types