code: def _get_package_data(root, file_patterns=None):
      """Expand file patterns to a list of `package_data` paths.
  
      Parameters
      -----------
      root: str
          The relative path to the package root from `HERE`.
      file_patterns: list or str, optional
          A list of glob patterns for the data file locations.
          The globs can be recursive if they include a `**`.
          They should be relative paths from the root or
          absolute paths.  If not given, all files will be used.
  
      Note:
      Files in `node_modules` are ignored.
      """
      if file_patterns is None:
          file_patterns = ["*"]
      return _get_files(file_patterns, _glob_pjoin(HERE, root))
  
imports: from collections import defaultdict
  from os.path import join
  import io
  import os
  import functools
  import pipes
  import re
  import shlex
  import subprocess
  import sys
  from setuptools import Command
  from setuptools.command.build_py import build_py
  from setuptools.command.sdist import sdist
  from distutils import log
  from setuptools.command.develop import develop
  from setuptools.command.bdist_egg import bdist_egg
label_desc: Use image node_id 21 for calling a global function with example usage: _get_package_data(root, file_patterns) and returns: _get_files