code: def get_data_dirs(__pkg: str) -> List[str]:
      
      dirs = [user_data(__pkg), ]
      dirs.extend(path.expanduser(path.sep.join([d, __pkg]))
                  for d in getenv('XDG_DATA_DIRS',
                                  '/usr/local/share/:/usr/share/').split(':'))
      return [d for d in dirs if path.isdir(d)]
docs: Return all data directories for given package.
  
      Args:
          __pkg: Package name