code: def _struct_dict_str(dtype, includealignedflag):
      # unpack the fields dictionary into ls
      names = dtype.names
      fld_dtypes = []
      offsets = []
      titles = []
      for name in names:
          fld_dtype, offset, title = _unpack_field(*dtype.fields[name])
          fld_dtypes.append(fld_dtype)
          offsets.append(offset)
          titles.append(title)
  
      # Build up a string to make the dictionary
  
      # First, the names
      ret = "{'names':["
      ret += ",".join(repr(name) for name in names)
  
      # Second, the formats
      ret += "], 'formats':["
      ret += ",".join(
          _construction_repr(fld_dtype, short=True)
          for fld_dtype in fld_dtypes
      )
  
      # Third, the offsets
      ret += "], 'offsets':["
      ret += ",".join("%d" % offset for offset in offsets)
  
      # Fourth, the titles
      if any(title is not None for title in titles):
          ret += "], 'titles':["
          ret += ",".join(repr(title) for title in titles)
  
      # Fifth, the itemsize
      ret += "], 'itemsize':%d" % dtype.itemsize
  
      if includealignedflag and dtype.isalignedstruct:
          # Finally, the aligned flag
          ret += ", 'aligned':True}"
      else:
          ret += "}"
  
      return ret
  
file_path: catboost/contrib/python/numpy/py2/numpy/core/_dtype.py
imports: from __future__ import division, absolute_import, print_function
  import sys
  import numpy
label_desc: Use image node_id 10 for calling a global function with example usage: _struct_dict_str(dtype, includealignedflag) and returns: ret