code: def check_valid_sizes(
      category: str, sizes: Sequence[int], valid_sizes: Sequence[int]
  ) -> None:
      check_argument(len(sizes) > 0, "No sizes passed")
  
      invalid_sizes = [s for s in sizes if s not in valid_sizes]
      f_valid_sizes = ", ".join(str(s) for s in valid_sizes)
      f_invalid_sizes = ", ".join(str(s) for s in invalid_sizes)
      check_argument(
          len(invalid_sizes) == 0,
          f"The following sizes are not valid for {category} dtypes: "
          f"{f_invalid_sizes} (valid sizes: {f_valid_sizes})",
      )
  
imports: import math
  import sys
  from numbers import Real
  from types import SimpleNamespace
  from typing import TYPE_CHECKING, Any, Iterable, Iterator, List, Literal, Mapping, NamedTuple, Optional, Sequence, Tuple, Type, TypeVar, Union, get_args
  from warnings import warn
  from weakref import WeakValueDictionary
  from hypothesis import strategies
  from hypothesis.errors import HypothesisWarning, InvalidArgument
  from hypothesis.extra._array_helpers import NDIM_MAX, BasicIndex, BasicIndexStrategy, BroadcastableShapes, Shape, array_shapes, broadcastable_shapes, check_argument, check_valid_dims, mutually_broadcastable_shapes, order_check, valid_tuple_axes
  from hypothesis.internal.conjecture import utils
  from hypothesis.internal.coverage import check_function
  from hypothesis.internal.floats import next_down
  from hypothesis.internal.reflection import proxies
  from hypothesis.internal.validation import check_type, check_valid_bound, check_valid_integer, check_valid_interval
  from hypothesis.strategies._internal.strategies import check_strategy
  from hypothesis.strategies._internal.utils import defines_strategy
label_desc: Use image node_id 13 for calling a global function with example usage: check_valid_sizes(category, sizes, valid_sizes) without return types