code: def _get_paths_from_binaries(binaries, root_dir=""):
      """Get all the paths from the binaries.json into a list."""
      paths = []
      if isinstance(binaries, str):
          return [os.path.join(root_dir, binaries)]
      elif isinstance(binaries, dict):
          for k, v in binaries.items():
              paths += _get_paths_from_binaries(
                  v, os.path.join(root_dir, k)
              )
      else:
          for i in binaries:
              paths += _get_paths_from_binaries(i, root_dir)
      return paths
  
file_path: ivy/setup.py
imports: import setuptools
  from setuptools import setup
  from pathlib import Path
  from urllib import request
  import os
  import json
  import re
label_desc: Use image node_id 1 for calling a global function with example usage: _get_paths_from_binaries(binaries, root_dir) and returns: paths, list