parameters: (cls, shape: Shape, dtype: ExtensionDtype)
return_statement: return result
docstring: Create an ExtensionArray with the given shape and dtype.
docstring_summary: Create an ExtensionArray with the given shape and dtype.
docstring_tokens: Create an ExtensionArray with the given shape and dtype .
function: def _empty(cls, shape: Shape, dtype: ExtensionDtype):
          """
          Create an ExtensionArray with the given shape and dtype.
          """
          obj = cls._from_sequence([], dtype=dtype)
  
          taker = np.broadcast_to(np.intp(-1), shape)
          result = obj.take(taker, allow_fill=True)
          if not isinstance(result, cls) or dtype != result.dtype:
              raise NotImplementedError(
                  f"Default 'empty' implementation is invalid for dtype='{dtype}'"
              )
          return result
function_tokens: def _empty ( cls , shape : Shape , dtype : ExtensionDtype ) : obj = cls . _from_sequence ( [ ] , dtype = dtype ) taker = np . broadcast_to ( np . intp ( - 1 ) , shape ) result = obj . take ( taker , allow_fill = True ) if not isinstance ( result , cls ) or dtype != result . dtype : raise NotImplementedError ( f"Default 'empty' implementation is invalid for dtype='{dtype}'" ) return result