code: def test_invalid_kind():
      with pytest.raises(ValueError):
          _ = File(kind="asdf")
  
file_path: BentoML/tests/unit/_internal/io/test_file.py
imports: from __future__ import annotations
  import io
  from typing import TYPE_CHECKING
  import pytest
  from bentoml.exceptions import BadInput
  from bentoml.grpc.utils import import_generated_stubs
  from bentoml.io import File
label_desc: Use image node_id 2 for calling a global function with example usage: test_invalid_kind() without return types