code: def test_DataFilesList_from_patterns_locally_with_extra_files(
      complex_data_dir, text_file
  ):
      data_files_list = DataFilesList.from_patterns(
          [_TEST_URL, text_file.as_posix()], complex_data_dir
      )
      assert list(data_files_list) == [_TEST_URL, text_file.as_posix()]
      assert len(data_files_list.origin_metadata) == 2
  
imports: import copy
  import os
  from pathlib import Path
  from typing import List
  from unittest.mock import patch
  import fsspec
  import pytest
  from fsspec.registry import _registry
  from fsspec.spec import AbstractFileSystem
  from datasets.data_files import DataFilesDict, DataFilesList, DataFilesPatternsDict, DataFilesPatternsList, _get_data_files_patterns, _get_metadata_files_patterns, _is_inside_unrequested_special_dir, _is_unrequested_hidden_file_or_is_inside_unrequested_hidden_dir, get_data_patterns, resolve_pattern
  from datasets.fingerprint import Hasher
label_desc: Use image node_id 34 for calling a global function with example usage: test_DataFilesList_from_patterns_locally_with_extra_files(complex_data_dir, text_file) without return types