code: def get_buf_flags(specs):
      is_c_contig, is_f_contig = is_cf_contig(specs)
  
      if is_c_contig:
          return memview_c_contiguous
      elif is_f_contig:
          return memview_f_contiguous
  
      access, packing = zip(*specs)
  
      if "full" in access or "ptr" in access:
          return memview_full_access
      else:
          return memview_strided_access
  
imports: from __future__ import absolute_import
  from .Errors import CompileError, error
  from .None import ExprNodes
  from .ExprNodes import IntNode, NameNode, AttributeNode
  from .None import Options
  from .Code import UtilityCode, TempitaUtilityCode
  from .UtilityCode import CythonUtilityCode
  from .None import Buffer
  from .None import PyrexTypes
  from .None import ModuleNode
label_desc: Use image node_id 5 for calling a global function with example usage: get_buf_flags(specs) and returns: memview_c_contiguous, memview_full_access, memview_strided_access, memview_f_contiguous