code: def test_put_different_meta(ray_start_regular):
      chan = ray_channel.Channel(1000)
  
      def _test(val):
          chan.write(val, num_readers=1)
  
          read_val = chan.begin_read()
          if isinstance(val, np.ndarray):
              assert np.array_equal(read_val, val)
          else:
              assert read_val == val
          chan.end_read()
  
      _test(b"hello")
      _test("hello")
      _test(1000)
      _test(np.random.rand(10))
  
      # Cannot put a serialized value larger than the allocated buffer.
      with pytest.raises(ValueError):
          _test(np.random.rand(100))
  
      _test(np.random.rand(1))
  
file_path: ray/python/ray/tests/test_channel.py
imports: import logging
  import os
  import sys
  import numpy
  import pytest
  import ray
  import ray.cluster_utils
  import ray.experimental.channel
label_desc: Use image node_id 3 for calling a global function with example usage: test_put_different_meta(ray_start_regular) without return types