p-doom/crowd-code-dataset-0.2 huggingface dataset:
[content] data/jasmine_data/atari/visualize_array_record.py (python)
    raw: Optional[bytes] = None
    # Prefer Python indexing if implemented
    try:
        raw = reader[index]
    except Exception:
        # Fall back to common explicit methods exposed by some builds
        for method_name in ("read", "read_at", "get", "record_at"):
            method = getattr(reader, method_name, None)
            if method is None:
                continue
            try:
                candidate = method(int(index))
                if candidate is not None:
                    raw = candidate
                    break
            except Exception:
                continue