def chown(hdfs_path, user=None, group=None, hdfs_user=None):
user = user or '<STR_LIT>'<EOL>group = group or '<STR_LIT>'<EOL>host, port, path_ = path.split(hdfs_path, hdfs_user)<EOL>with hdfs(host, port, hdfs_user) as fs:<EOL><INDENT>return fs.chown(path_, user=user, group=group)<EOL><DEDENT>
See :meth:`fs.hdfs.chown`.