code: def _get_data(url: str, sha256: str) -> str:
      if not url.startswith(("http:", "https:")):
          raise ValueError("URL must start with 'http:' or 'https:'")
  
      req = urllib.request.Request(url)  # noqa: S310
      with urllib.request.urlopen(req) as response:  # noqa: S310
          data = response.read()
  
      assert hashlib.sha256(data).hexdigest() == sha256
  
      return data.decode("utf-8")
  
file_path: kornia/test/nerf/test_camera_utils.py
imports: import hashlib
  import urllib.request
  import pytest
  import torch
  from kornia.geometry.conversions import quaternion_to_rotation_matrix
  from kornia.nerf.camera_utils import create_spiral_path, parse_colmap_output
  from kornia.testing import assert_close
label_desc: Use image node_id 1 for calling a global function with example usage: _get_data(url, sha256) and returns: data