code: def fields(draw, type_strategy=primitive_types):
      name = draw(custom_text)
      typ = draw(type_strategy)
      if pa.types.is_null(typ):
          nullable = True
      else:
          nullable = draw(st.booleans())
      meta = draw(metadata)
      return pa.field(name, type=typ, nullable=nullable, metadata=meta)
  
imports: import datetime
  import sys
  import pytest
  import hypothesis
  import hypothesis.strategies
  import hypothesis.extra.numpy
  import numpy
  import pyarrow
label_desc: Use image node_id 1 for calling a global function with example usage: fields(draw, type_strategy) and returns: pa