code: def test_http_dataset_source_is_registered_and_resolvable():
      source1 = resolve_dataset_source(
          "http://mywebsite.com/path/to/my/dataset.txt",
          candidate_sources=[HTTPDatasetSource],
      )
      assert isinstance(source1, HTTPDatasetSource)
      assert (
          source1.url == "http://mywebsite.com/path/to/my/dataset.txt"
      )
  
      source2 = resolve_dataset_source(
          "https://otherwebsite.net",
          candidate_sources=[HTTPDatasetSource],
      )
      assert isinstance(source2, HTTPDatasetSource)
      assert source2.url == "https://otherwebsite.net"
  
      with pytest.raises(
          MlflowException,
          match="Could not find a source information resolver",
      ):
          resolve_dataset_source(
              "s3://mybucket", candidate_sources=[HTTPDatasetSource]
          )
  
      with pytest.raises(
          MlflowException,
          match="Could not find a source information resolver",
      ):
          resolve_dataset_source(
              "otherscheme://mybucket",
              candidate_sources=[HTTPDatasetSource],
          )
  
      with pytest.raises(
          MlflowException,
          match="Could not find a source information resolver",
      ):
          resolve_dataset_source(
              "htp://mybucket", candidate_sources=[HTTPDatasetSource]
          )
  
file_path: mlflow/tests/data/test_http_dataset_source.py
imports: import json
  import os
  from unittest import mock
  import pandas
  import pytest
  from mlflow.data.dataset_source_registry import get_dataset_source_from_json, resolve_dataset_source
  from mlflow.data.http_dataset_source import HTTPDatasetSource
  from mlflow.exceptions import MlflowException
  from mlflow.utils.os import is_windows
  from mlflow.utils.rest_utils import cloud_storage_http_request
label_desc: Use image node_id 2 for calling a global function with example usage: test_http_dataset_source_is_registered_and_resolvable() without return types