code: def get_all_elems_from_json(
      search_json: dict, search_key: str
  ) -> list:
      """Returns values by key in all nested dicts.
  
      Args:
          search_json: Dictionary in which one needs to find all values by specific key.
          search_key: Key for search.
  
      Returns:
          List of values stored in nested structures by ``search_key``.
  
      Examples:
          >>> get_all_elems_from_json({'a':{'b': [1,2,3]}, 'b':42}, 'b')
          [[1, 2, 3], 42]
  
      """
      result = []
      if isinstance(search_json, dict):
          for key in search_json:
              if key == search_key:
                  result.append(search_json[key])
              else:
                  result.extend(
                      get_all_elems_from_json(
                          search_json[key], search_key
                      )
                  )
      elif isinstance(search_json, list):
          for item in search_json:
              result.extend(get_all_elems_from_json(item, search_key))
  
      return result
  
imports: import collections
  import gzip
  import os
  import secrets
  import shutil
  import tarfile
  import zipfile
  from hashlib import md5
  from itertools import chain
  from logging import getLogger
  from pathlib import Path
  from typing import Any, Generator, Iterable, List, Mapping, Optional, Sequence, Sized, Union, Collection
  from urllib.parse import urlencode, parse_qs, urlsplit, urlunsplit, urlparse
  import numpy
  import requests
  from tqdm import tqdm
label_desc: Use image node_id 18 for calling a global function with example usage: get_all_elems_from_json(search_json, search_key) and returns: result