code: def integer_array(values, dtype=None, copy=False):
      """
      Infer and return an integer array of the values.
  
      Parameters
      ----------
      values : 1D list-like
      dtype : dtype, optional
          dtype to coerce
      copy : boolean, default False
  
      Returns
      -------
      IntegerArray
  
      Raises
      ------
      TypeError if incompatible types
      """
      values, mask = coerce_to_array(values, dtype=dtype, copy=copy)
      return IntegerArray(values, mask)
  
imports: import copy
  import sys
  import warnings
  import numpy
  from pandas._libs import lib
  from pandas.compat import range, set_function_name, string_types
  from pandas.util._decorators import cache_readonly
  from pandas.core.dtypes.base import ExtensionDtype
  from pandas.core.dtypes.cast import astype_nansafe
  from pandas.core.dtypes.common import is_bool_dtype, is_float, is_float_dtype, is_integer, is_integer_dtype, is_list_like, is_object_dtype, is_scalar
  from pandas.core.dtypes.dtypes import register_extension_dtype
  from pandas.core.dtypes.generic import ABCIndexClass, ABCSeries
  from pandas.core.dtypes.missing import isna, notna
  from pandas.core import nanops
  from pandas.core.arrays import ExtensionArray, ExtensionOpsMixin
  from pandas.core.tools.numeric import to_numeric
label_desc: Use image node_id 1 for calling a global function with example usage: integer_array(values, dtype, copy) and returns: IntegerArray