code: def _get_scripts():
      dist = distribution("ninja")
      scripts_paths = [
          os.path.abspath(sysconfig.get_path("scripts", scheme))
          for scheme in sysconfig.get_scheme_names()
      ]
      scripts = []
      for file in dist.files:
          if (
              os.path.abspath(str(file.locate().parent))
              in scripts_paths
          ):
              scripts.append(file.locate().resolve(strict=True))
      return scripts
  
file_path: ninja-python-distributions/tests/test_ninja.py
imports: import os
  import subprocess
  import sys
  import sysconfig
  import pytest
  from importlib_metadata import distribution
  import ninja
  from .None import push_argv
label_desc: Use image node_id 2 for calling a global function with example usage: _get_scripts() and returns: scripts