code: def glob(self, filename):
          
          if isinstance(filename, six.string_types):
              return [
                  # Convert the filenames to string from bytes.
                  compat.as_str_any(matching_filename)
                  for matching_filename in py_glob.glob(
                      compat.as_bytes(filename))
              ]
          else:
              return [
                  # Convert the filenames to string from bytes.
                  compat.as_str_any(matching_filename)
                  for single_filename in filename
                  for matching_filename in py_glob.glob(
                      compat.as_bytes(single_filename))
              ]
docs: Returns a list of files that match the given pattern(s).