code: def test_data_type_builder_auto(request_schema):
      if "JINA_ARRAY_QUANT" in os.environ:
          print(f'quant is on: {os.environ["JINA_ARRAY_QUANT"]}')
          del os.environ["JINA_ARRAY_QUANT"]
  
      d, t = _new_doc_from_data("123", request_schema)
      assert d.text == "123"
      assert t == DataInputType.CONTENT
  
      d, t = _new_doc_from_data(b"123", request_schema)
      assert t == DataInputType.CONTENT
      assert d.blob == b"123"
  
      c = np.random.random([10, 10])
      d, t = _new_doc_from_data(c, request_schema)
      np.testing.assert_equal(d.tensor, c)
      assert t == DataInputType.CONTENT
  
file_path: jina/tests/unit/clients/python/test_request.py
imports: import os
  import numpy
  import pytest
  from docarray import Document
  from jina.clients.request import request_generator
  from jina.clients.request.helper import _new_doc_from_data
  from jina.enums import DataInputType
label_desc: Use image node_id 2 for calling a global function with example usage: test_data_type_builder_auto(request_schema) without return types