def METHOD_NAME(
    self,
    _mock_get_storage_click,
    _mock_get_datastore_info,
    tmp_path: Path,
    mock_datastore_operations,
    mock_requests_pipeline,
):
    mltable_folder = tmp_path / "mltable_folder"
    mltable_folder.mkdir()
    tmp_metadata_file = mltable_folder / "MLTable"
    file_contents = """
        paths:
            - file: ./tmp_file.csv
        transformations:
            - read_delimited:
                delimiter: ","
                encoding: ascii
                header: all_files_same_headers
    """
    tmp_metadata_file.write_text(file_contents)
    # remote https accessible
    with patch.object(
        mock_requests_pipeline, "get", return_value=Mock(content=file_contents.encode(encoding="UTF-8"))
    ):
        contents = read_remote_mltable_metadata_contents(
            datastore_operations=mock_datastore_operations,
            base_uri="https://fake.localhost/file.yaml",
            requests_pipeline=mock_requests_pipeline,
        )
        assert contents["paths"] == [OrderedDict([("file", "./tmp_file.csv")])]
    # remote https inaccessible
    with pytest.raises(Exception) as ex:
        contents = read_remote_mltable_metadata_contents(
            datastore_operations=mock_datastore_operations,
            base_uri="https://fake.localhost/file.yaml",
            requests_pipeline=mock_requests_pipeline,
        )
    assert "Failed to establish a new connection" in str(ex)
    # remote azureml accessible
    with patch("azure.ai.ml._utils._data_utils.TemporaryDirectory", return_value=mltable_folder):
        contents = read_remote_mltable_metadata_contents(
            datastore_operations=mock_datastore_operations,
            base_uri="azureml://datastores/mydatastore/paths/images/dogs",
            requests_pipeline=mock_requests_pipeline,
        )
        assert contents["paths"] == [OrderedDict([("file", "./tmp_file.csv")])]
    # remote azureml inaccessible
    with pytest.raises(Exception) as ex:
        contents = read_remote_mltable_metadata_contents(
            datastore_operations=mock_datastore_operations,
            base_uri="azureml://datastores/mydatastore/paths/images/dogs",
            requests_pipeline=mock_requests_pipeline,
        )
    assert "No such file or directory" in str(ex)
    # local accessible
    contents = read_local_mltable_metadata_contents(path=mltable_folder)
    assert contents["paths"] == [OrderedDict([("file", "./tmp_file.csv")])]
    # local inaccessible: should raise an error when an MLTable metadata file cannot be read from local path (path is not "is_url")
    with pytest.raises(Exception) as ex:
        read_local_mltable_metadata_contents(path=mltable_folder / "should-fail")
    assert "No such file or directory" in str(ex)