parameters: (url_str, gsutil_api, all_versions=False, debug=0,
                             project_id=None)
docstring: Instantiate a WildcardIterator for the given URL string.
  
    Args:
      url_str: URL string naming wildcard object(s) to iterate.
      gsutil_api: Cloud storage interface.  Passed in for thread safety, also
                  settable for testing/mocking.
      all_versions: If true, the iterator yields all versions of objects
                    matching the wildcard.  If false, yields just the live
                    object version.
      debug: Debug level to control debug output for iterator.
      project_id: Project id to use for bucket listings.
  
    Returns:
      A WildcardIterator that handles the requested iteration.
docstring_summary: Instantiate a WildcardIterator for the given URL string.
docstring_tokens: Instantiate a WildcardIterator for the given URL string .
function: def CreateWildcardIterator(url_str, gsutil_api, all_versions=False, debug=0,
                             project_id=None):
    """Instantiate a WildcardIterator for the given URL string.
  
    Args:
      url_str: URL string naming wildcard object(s) to iterate.
      gsutil_api: Cloud storage interface.  Passed in for thread safety, also
                  settable for testing/mocking.
      all_versions: If true, the iterator yields all versions of objects
                    matching the wildcard.  If false, yields just the live
                    object version.
      debug: Debug level to control debug output for iterator.
      project_id: Project id to use for bucket listings.
  
    Returns:
      A WildcardIterator that handles the requested iteration.
    """
  
    url = StorageUrlFromString(url_str)
    if url.IsFileUrl():
      return FileWildcardIterator(url, debug=debug)
    else:  # Cloud URL
      return CloudWildcardIterator(
          url, gsutil_api, all_versions=all_versions, debug=debug,
          project_id=project_id)
function_tokens: def CreateWildcardIterator ( url_str , gsutil_api , all_versions = False , debug = 0 , project_id = None ) : url = StorageUrlFromString ( url_str ) if url . IsFileUrl ( ) : return FileWildcardIterator ( url , debug = debug ) else : # Cloud URL return CloudWildcardIterator ( url , gsutil_api , all_versions = all_versions , debug = debug , project_id = project_id )